From ab82a735cd57dd20236135447b774643faf7e1c1 Mon Sep 17 00:00:00 2001 From: Philip Paquette Date: Tue, 5 Mar 2019 16:01:53 -0500 Subject: Refactored get_all_possible_orders for 2.5x speed improvement - Returning all locations at once - Removed 'loc' argument from method - Map has pre-computed attribute dest_with_coats --- diplomacy/tests/test_game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'diplomacy/tests/test_game.py') diff --git a/diplomacy/tests/test_game.py b/diplomacy/tests/test_game.py index 20994c8..cec1df7 100644 --- a/diplomacy/tests/test_game.py +++ b/diplomacy/tests/test_game.py @@ -518,7 +518,7 @@ def test_set_current_phase(): game.clear_cache() assert game.get_current_phase() == 'W1901A' assert game.phase_type == 'A' - assert 'A PAR B' in game.get_all_possible_orders('PAR') + assert 'A PAR B' in game.get_all_possible_orders()['PAR'] def test_process_game(): """ Tests - Process game """ -- cgit v1.2.3