From 6dd4b4384c6baa42ee56c6a7ae43a389100b0d35 Mon Sep 17 00:00:00 2001 From: Vince Knight Date: Mon, 9 Jun 2025 11:10:48 +0100 Subject: [PATCH 1/3] Add link to discord server. --- README.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.rst b/README.rst index 75c6ba8df..346976f56 100644 --- a/README.rst +++ b/README.rst @@ -7,6 +7,9 @@ .. image:: https://github.com/Axelrod-Python/Axelrod/workflows/CI/badge.svg :target: https://github.com/Axelrod-Python/Axelrod/actions +Join `the Game Theory Discord `_ +server to chat -- `direct invite link `_. + Axelrod ======= From aa3a2c2151978692c8acca344ba3678e8b173914 Mon Sep 17 00:00:00 2001 From: Vince Knight Date: Fri, 13 Jun 2025 15:00:02 +0100 Subject: [PATCH 2/3] Suppress too slow healthcheck. --- axelrod/tests/unit/test_strategy_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/axelrod/tests/unit/test_strategy_utils.py b/axelrod/tests/unit/test_strategy_utils.py index 797dfe8bd..f25a6842b 100644 --- a/axelrod/tests/unit/test_strategy_utils.py +++ b/axelrod/tests/unit/test_strategy_utils.py @@ -2,7 +2,7 @@ import unittest -from hypothesis import given, settings +from hypothesis import given, settings, HealthCheck from hypothesis.strategies import integers, lists, sampled_from import axelrod as axl @@ -20,7 +20,7 @@ class TestDetectCycle(unittest.TestCase): cycle=lists(sampled_from([C, D]), min_size=2, max_size=10), period=integers(min_value=3, max_value=10), ) - @settings(max_examples=5) + @settings(max_examples=5, suppress_health_check=(HealthCheck.too_slow,)) def test_finds_cycle(self, cycle, period): history = cycle * period detected = detect_cycle(history) From 20e6b906c5dc8634d32c100d2d0f39c28486c579 Mon Sep 17 00:00:00 2001 From: Vince Knight Date: Fri, 13 Jun 2025 15:40:29 +0100 Subject: [PATCH 3/3] Fix ordering of imports. --- axelrod/tests/unit/test_strategy_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axelrod/tests/unit/test_strategy_utils.py b/axelrod/tests/unit/test_strategy_utils.py index f25a6842b..ec64e13ba 100644 --- a/axelrod/tests/unit/test_strategy_utils.py +++ b/axelrod/tests/unit/test_strategy_utils.py @@ -2,7 +2,7 @@ import unittest -from hypothesis import given, settings, HealthCheck +from hypothesis import HealthCheck, given, settings from hypothesis.strategies import integers, lists, sampled_from import axelrod as axl