Skip to content

Commit bd4b626

Browse files
Nikoleta-v3marcharper
authored andcommitted
remove imports and associated tests with fool me forever
1 parent 436a248 commit bd4b626

File tree

2 files changed

+1
-32
lines changed

2 files changed

+1
-32
lines changed

axelrod/strategies/_strategies.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
from .mindreader import MindReader, MirrorMindReader, ProtectedMindReader
161161
from .mutual import Desperate, Hopeless, Willing
162162
from .negation import Negation
163-
from .oncebitten import FoolMeForever, FoolMeOnce, ForgetfulFoolMeOnce, OnceBitten
163+
from .oncebitten import FoolMeOnce, ForgetfulFoolMeOnce, OnceBitten
164164
from .prober import (
165165
CollectiveStrategy,
166166
Detective,
@@ -305,7 +305,6 @@
305305
EvolvedHMM5,
306306
Feld,
307307
FirmButFair,
308-
FoolMeForever,
309308
FoolMeOnce,
310309
ForgetfulFoolMeOnce,
311310
ForgetfulGrudger,

axelrod/tests/strategies/test_oncebitten.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -140,33 +140,3 @@ def test_strategy(self):
140140
seed=2,
141141
attrs={"D_count": 0},
142142
)
143-
144-
145-
class TestFoolMeForever(TestPlayer):
146-
147-
name = "Fool Me Forever"
148-
player = axelrod.FoolMeForever
149-
expected_classifier = {
150-
"memory_depth": float("inf"), # Long memory
151-
"stochastic": False,
152-
"makes_use_of": set(),
153-
"long_run_time": False,
154-
"inspects_source": False,
155-
"manipulates_source": False,
156-
"manipulates_state": False,
157-
}
158-
159-
def test_strategy(self):
160-
# If opponent defects more than once, cooperate forever.
161-
actions = [(D, C)] * 20
162-
self.versus_test(opponent=axelrod.Cooperator(), expected_actions=actions)
163-
164-
actions = [(D, C), (D, D)] + [(C, C), (C, D)] * 20
165-
self.versus_test(opponent=axelrod.Alternator(), expected_actions=actions)
166-
167-
opponent = axelrod.MockPlayer([D] + [C] * 19)
168-
actions = [(D, D)] + [(C, C)] * 19
169-
self.versus_test(opponent=opponent, expected_actions=actions)
170-
171-
actions = [(D, D)] + [(C, D)] * 19
172-
self.versus_test(opponent=axelrod.Defector(), expected_actions=actions)

0 commit comments

Comments
 (0)