Skip to content

Commit

Permalink
GSYE-674: Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesdiedrich committed Jan 26, 2024
1 parent a079584 commit 0400451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/strategies/forward/test_strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,13 @@ def test_forward_strategy_updates_orders_on_tick(
updated_order.energy_rate,
(updater_params.initial_rate -
slot_completion_ratio * abs(updater_params.initial_rate -
updater_params.final_rate)))
updater_params.final_rate)), abs_tol=1e-5)
else:
assert isclose(
updated_order.energy_rate,
slot_completion_ratio * (
updater_params.final_rate - updater_params.initial_rate) +
updater_params.initial_rate)
updater_params.initial_rate, abs_tol=1e-5)

@staticmethod
def _get_order_mapping_from_strategy(
Expand Down

0 comments on commit 0400451

Please sign in to comment.