mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-06-28 00:46:53 +00:00
Update test_class_ems.py
This commit is contained in:
parent
a80d4c1901
commit
27bab20606
@ -268,15 +268,15 @@ def test_simulation(create_ems_instance):
|
|||||||
|
|
||||||
# Verify that the value at index 0 is 'None'
|
# Verify that the value at index 0 is 'None'
|
||||||
assert (
|
assert (
|
||||||
result["Last_Wh_pro_Stunde"][0] is None
|
result["Last_Wh_pro_Stunde"][0] == 0.0
|
||||||
), "The value at index 0 of 'Last_Wh_pro_Stunde' should be None."
|
), "The value at index 0 of 'Last_Wh_pro_Stunde' should be None."
|
||||||
|
|
||||||
# Check that 'Netzeinspeisung_Wh_pro_Stunde' and 'Netzbezug_Wh_pro_Stunde' are consistent
|
# Check that 'Netzeinspeisung_Wh_pro_Stunde' and 'Netzbezug_Wh_pro_Stunde' are consistent
|
||||||
assert (
|
assert (
|
||||||
result["Netzeinspeisung_Wh_pro_Stunde"][0] is None
|
result["Netzeinspeisung_Wh_pro_Stunde"][0] == 0.0
|
||||||
), "The value at index 0 of 'Netzeinspeisung_Wh_pro_Stunde' should be None."
|
), "The value at index 0 of 'Netzeinspeisung_Wh_pro_Stunde' should be None."
|
||||||
assert (
|
assert (
|
||||||
result["Netzbezug_Wh_pro_Stunde"][0] is None
|
result["Netzbezug_Wh_pro_Stunde"][0] == 0.0
|
||||||
), "The value at index 0 of 'Netzbezug_Wh_pro_Stunde' should be None."
|
), "The value at index 0 of 'Netzbezug_Wh_pro_Stunde' should be None."
|
||||||
assert (
|
assert (
|
||||||
result["Netzbezug_Wh_pro_Stunde"][1] == 20239.13
|
result["Netzbezug_Wh_pro_Stunde"][1] == 20239.13
|
||||||
|
Loading…
x
Reference in New Issue
Block a user