Skip to content

Commit

Permalink
now failing if the init state options raises a warning
Browse files Browse the repository at this point in the history
Signed-off-by: DONNOT Benjamin <[email protected]>
  • Loading branch information
BDonnot committed Nov 7, 2024
1 parent f8e3971 commit 6385723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grid2op/tests/test_action_set_orig_state_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_incorrect_action_error(self):
"""test that when an action raised a warning then grid2op fails"""
with self.assertRaises(UserWarning):
obs = self.env.reset(options={"time serie id": 1,
"init state": {"toto": 1}})
"init state": {"toto": 1}})

def _aux_make_step(self, act=None):
if act is None:
Expand Down

0 comments on commit 6385723

Please sign in to comment.