Skip to content

Commit

Permalink
Fix gym settings test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpalms committed Apr 28, 2024
1 parent 69051c1 commit 0e7e342
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_gym_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def func(settings, mocker):
"role": [[Roles.P1, Roles.P2], [Roles.P2, Roles.P1], [None, None]],
"characters": [[None, None], [None, "TBD"], ["TBD", "TBD"]],
"super_art": [None, 1, 3],
"fighting_style": [None, 1, 3],
"fighting_style": [None, 1, 2, 3],
"ultimate_style": [None, (2, 2, 2)],
"speed_mode": [None, 1, 2],
}
Expand Down Expand Up @@ -96,6 +96,8 @@ def test_gym_settings(game_id, n_players, frame_shape, step_ratio, action_space,
settings.characters = (characters[0], characters[1])
settings.outfits = (outfits, outfits)
settings.super_art = (super_art, super_art)
if game_id != "kof98umh" and fighting_style == 3:
fighting_style = 2
settings.fighting_style = (fighting_style, fighting_style)
settings.ultimate_style = (ultimate_style, ultimate_style)
settings.speed_mode = (speed_mode, speed_mode)
Expand Down

0 comments on commit 0e7e342

Please sign in to comment.