Skip to content

Commit 4d3aacf

Browse files
committed
Update tests
1 parent 45b632f commit 4d3aacf

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

tests/run_forever.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,26 @@
1616

1717
current_map = -1
1818

19+
BLUE_NECTO = get_player_config(flat.RLBot(), 0, BOT_PATH)
20+
ORANGE_NECTO = get_player_config(flat.RLBot(), 1, BOT_PATH)
21+
1922
match_settings = flat.MatchSettings(
2023
launcher=flat.Launcher.Steam,
2124
auto_start_bots=True,
2225
game_mode=flat.GameMode.Soccer,
2326
enable_state_setting=True,
2427
existing_match_behavior=flat.ExistingMatchBehavior.Restart,
2528
skip_replays=True,
29+
mutator_settings=flat.MutatorSettings(
30+
match_length=flat.MatchLength.Unlimited,
31+
),
2632
player_configurations=[
27-
get_player_config(flat.RLBot(), 0, BOT_PATH),
28-
get_player_config(flat.RLBot(), 1, BOT_PATH),
33+
BLUE_NECTO,
34+
BLUE_NECTO,
35+
BLUE_NECTO,
36+
ORANGE_NECTO,
37+
ORANGE_NECTO,
38+
ORANGE_NECTO,
2939
],
3040
)
3141

@@ -49,9 +59,7 @@
4959
== flat.GameStateType.Countdown
5060
):
5161
match_manager.set_game_state(
52-
flat.DesiredGameState(
53-
game_info_state=flat.DesiredGameInfoState(game_speed=10)
54-
)
62+
game_info=flat.DesiredGameInfoState(game_speed=2)
5563
)
5664

5765
sleep(1)

tests/run_only.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
CURRENT_FILE = Path(__file__).parent
77

88
MATCH_CONFIG_PATH = CURRENT_FILE / "hvn.toml"
9-
MATCH_CONFIG_PATH = CURRENT_FILE / "rlbot.toml"
109

1110
if __name__ == "__main__":
1211
print(print_current_release_notes())

0 commit comments

Comments
 (0)