Commit Graph

11 Commits

Author SHA1 Message Date
Stefan Allius
25145a9c29 check print output in test_save_and_restore 2025-05-08 00:23:44 +02:00
Stefan Allius
fc93930656 add unit test for error handling in build_config() 2025-05-07 23:42:55 +02:00
Stefan Allius
b321cfce0f add HypercornLogHndl tests 2025-05-07 12:05:58 +02:00
Stefan Allius
cf9911f2f1 test the init_logging_system() method 2025-05-07 11:42:04 +02:00
Stefan Allius
d35c4e7b90 move code from app.py into server.py 2025-05-07 10:26:58 +02:00
Stefan Allius
911d0a9612 add unit tests 2025-05-06 22:23:41 +02:00
Stefan Allius
ab2d4ed831 move get_log_level into Server class 2025-05-05 23:47:06 +02:00
Stefan Allius
80cefc8082 S allius/issue378 (#382)
* move home route into web diretory

* add web UI to add-on

* update changelog

* use Blueprints
2025-04-16 01:49:53 +02:00
Stefan Allius
7d5670b6b5 remove aiohttp by quart (#381)
* remove aiohttp by quart

* remove global proxy_is_up

* add unit test for some routes
2025-04-16 00:54:02 +02:00
Stefan Allius
ec3af69e62 S allius/issue288 (#289)
* remove apostrophes from fmt strings

- thanks to @onkelenno for the suggestion

* improve the logger initializing

- don't overwrite the logging.ini settings if the
env variable LOG_LVL isn't well defined
- Thanks to @onkelenno for the idea to improve

* set default argument for LOG_LVL to INFO in docker files

* adapt unit test
2025-02-23 14:17:57 +01:00
Stefan Allius
b335881500 S allius/issue217 2 (#230)
* add some reader classes to get the configuration

* adapt unittests

* get config from json or toml file

* loop over all config readers to get the configuration

* rename config test files

* use relative paths for coverage test in vscode

* do not throw an error for missing config files

* remove obsolete tests

* use dotted key notation for pv sub dictonary

* log config reading progress

* remove create_config_toml.py

* remove obsolete tests for the ha_addon

* disable mosquitto tests if the server is down

* ignore main method for test coverage

* increase test coverage

* pytest-cov: use relative_files only on github, so coverage will work with vscode locally

* remove unneeded imports

* add missing test cases

* disable branch coverage, cause its not reachable
2024-12-08 13:25:04 +01:00