Skip to content

Commit a7f6a40

Browse files
committed
Shorter run time for test_meta
1 parent 6a36621 commit a7f6a40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

axelrod/tests/strategies/test_meta.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_clone(self, seed):
8484
self.assertEqual(player2.classifier, player1.classifier)
8585
self.assertEqual(player2.match_attributes, player1.match_attributes)
8686

87-
turns = 10
87+
turns = 5
8888
for op in [
8989
axl.Cooperator(),
9090
axl.Defector(),
@@ -104,7 +104,7 @@ def test_update_histories(self):
104104

105105
@given(opponent_list=strategy_lists(max_size=1))
106106
@settings(
107-
max_examples=5,
107+
max_examples=1,
108108
deadline=None,
109109
suppress_health_check=(HealthCheck.differing_executors,),
110110
)
@@ -122,7 +122,7 @@ def test_players_return_valid_actions(self, opponent_list):
122122
"""
123123
player = self.player()
124124
opponent = opponent_list[0]()
125-
match = axl.Match(players=(player, opponent))
125+
match = axl.Match(players=(player, opponent), turns=10)
126126
interactions = match.play()
127127
player_actions = set(player_action for player_action, _ in interactions)
128128
self.assertTrue(player_actions <= set((C, D)))

0 commit comments

Comments
 (0)