Test parameters stored in .env file to remove dependency on O/S environment variables.
example.env has values for existing tests, copy to .env before running test_sonnen
Refactored some API item names to follow a convention so to allow very similar names from different API endpoints to be less confusing
Changed some decorator types to match data being returned by API
Separate concerns: Removed date formatting from data fetch function (date formatted by caller) <- possible breaking change to existing code. Tests have this refactor for examples.
Added functions to return data related to backup buffer management
Added test_batterie to query live battery to display data relevant to backup buffer management
Changed mock data (looks more like live data) to get all tests working.
Refactored some tests to not get data when testing API failures
Change log:
Test parameters stored in .env file to remove dependency on O/S environment variables. example.env has values for existing tests, copy to .env before running test_sonnen
Refactored some API item names to follow a convention so to allow very similar names from different API endpoints to be less confusing
Changed some decorator types to match data being returned by API
Separate concerns: Removed date formatting from data fetch function (date formatted by caller) <- possible breaking change to existing code. Tests have this refactor for examples.
Added functions to return data related to backup buffer management
Added test_batterie to query live battery to display data relevant to backup buffer management
Changed mock data (looks more like live data) to get all tests working. Refactored some tests to not get data when testing API failures
All tests pass