Dominique Lasserre
a41aea824c
Fix test_server Closes #147
...
* Don´t rely on calculation per specific day, just verify length.
2024-10-10 07:41:42 +02:00
Michael Osthege
3c1482c2c0
Activate optimization test with 3 generations
2024-10-09 17:05:36 +02:00
Michael Osthege
b6d0ef22f3
Remove and ignore visualization side-effect outputs
2024-10-09 17:05:36 +02:00
Normann
929d7e0a75
JSON files for test_class_optimize.py
...
Update test_class_optimize.py
added Skipped per default
Fix optimization test
Fix optimization test
2024-10-09 17:05:36 +02:00
Andreas
9e3dd27a7b
Ruff
2024-10-09 16:59:50 +02:00
Andreas
565e721d68
[BUG]: class_ems nd_array not JSON serializable
...
Big Bugfix - not sure if everything works
2024-10-09 16:59:50 +02:00
Bobby Noelte
4284119352
Add test for server
...
A test fixture to start the server and a first test case is added.
The fixture tries to assure that the server is installed and running.
If it is not installed the fixture uses pip to install it.
The server and the installation by pip is run bei the same Python
executable that also runs pytest.
The github workflow for pytest is adapted to install akkudoktor-eos.
Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
2024-10-08 19:22:16 +02:00
Normann
a5a492b55e
revert check in test for ems
2024-10-08 18:55:51 +02:00
Bobby Noelte
ba31734bd8
Adapt tests to package directory structure.
...
Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
2024-10-07 08:12:33 +02:00
Andreas
b7dbd7e475
min_soc (was killed by someone else, pls dont force push!)
2024-10-06 16:00:07 +02:00
Normann
d8a46eb5d3
fixed optimize test
...
fixed first our values for optimize test
2024-10-06 15:20:37 +02:00
Andreas
b8d07db483
Pre Commit
2024-10-06 14:35:11 +02:00
Andreas
cc270e71bc
- Home Appliances fixed
...
- Unittest with Home Appliances
2024-10-06 14:35:11 +02:00
Andreas
584ab225f1
Unittest includes Home Appliances
2024-10-06 14:35:11 +02:00
Normann
fc0ee64521
Update test_class_ems.py
2024-10-06 14:35:11 +02:00
fortrieb
a1c071c1a8
Heat pump: Tests, Translation, Docstrings, Relocation ( #89 )
...
* Add first unit test for heatpump COP calculation
* Translate to english,
add type hints, improve unit tests.
* Run pre-commit
* Apply suggestions from code review
Co-authored-by: Michael Osthege <michael.osthege@outlook.com>
* Remove conftest file
---------
Co-authored-by: Michael Osthege <michael.osthege@outlook.com>
2024-10-06 01:06:08 +02:00
Normann
75d87aa94a
test for class_optimize in PR #88
...
Test meant for class_optimize.
Will only work with PR #88 since the old class has no way to use a fixed random seed.
2024-10-05 23:54:05 +02:00
Michael Osthege
f1bf01b381
Fix code style
2024-10-04 11:51:10 +02:00
Andreas
2f31fe6669
English + Ruff
2024-10-04 11:04:50 +02:00
Andreas
2e82cad052
Unittest EMS
2024-10-04 11:04:50 +02:00
Michael Osthege
a4d178d250
Apply isort and ruff code style
2024-10-03 17:28:49 +02:00
Andreas
811edf9ad1
unittest -> pytest
2024-10-03 09:57:36 +02:00
Fortrieb
d1e5c344c0
Add first unit test for heatpump COP calculation
2024-10-03 09:57:36 +02:00