Skip to content

Commit

Permalink
fix pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rieck committed Nov 5, 2024
1 parent a946a81 commit afb46ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_generic_dhw_boiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def test_simple_bucket_boiler_state():
my_boiler.i_simulate(j, stsv, False)

# check if heat loss in boiler corresponds to heatloss originated from 1 l hot water use and u-value heat loss
assert stsv.values[2] == my_heater.config.power_th * my_heater.config.efficiency
assert stsv.values[2] == my_heater.config.thermal_power_in_watt * my_heater.config.efficiency

# check if heater stops heating when temperature of boiler is too high
stsv.values[0] = 0
Expand Down
4 changes: 2 additions & 2 deletions tests/test_generic_heat_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@ def test_heat_source():
# Check if there is a signal to heat up the house
assert 1 == stsv.values[1]
# Check if the delivered heat is indeed that corresponded to the heat pump model
assert my_heat_source_config.power_th / 60 == stsv.values[2]
assert my_heat_source_config.power_th == stsv.values[3]
assert my_heat_source_config.thermal_power_in_watt / 60 == stsv.values[2]
assert my_heat_source_config.thermal_power_in_watt == stsv.values[3]

0 comments on commit afb46ca

Please sign in to comment.