99
1010import axelrod as axl
1111from axelrod .fingerprint import AshlockFingerprint , Point , TransitiveFingerprint
12+ from axelrod .load_data_ import axl_filename
1213from axelrod .strategy_transformers import DualTransformer , JossAnnTransformer
1314from axelrod .tests .property import strategy_lists
1415
@@ -195,7 +196,7 @@ def test_temp_file_creation(self):
195196
196197 RecordedMksTemp .reset_record ()
197198 af = AshlockFingerprint (axl .TitForTat )
198- filename = "test_outputs/test_fingerprint.csv"
199+ filename = axl_filename ( "test_outputs/test_fingerprint.csv" )
199200
200201 self .assertEqual (RecordedMksTemp .record , [])
201202
@@ -211,7 +212,7 @@ def test_temp_file_creation(self):
211212 self .assertFalse (os .path .isfile (filename ))
212213
213214 def test_fingerprint_with_filename (self ):
214- filename = "test_outputs/test_fingerprint.csv"
215+ filename = axl_filename ( "test_outputs/test_fingerprint.csv" )
215216 af = AshlockFingerprint (axl .TitForTat )
216217 af .fingerprint (
217218 turns = 1 , repetitions = 1 , step = 0.5 , progress_bar = False , filename = filename
@@ -425,7 +426,7 @@ def test_init_with_not_default_number(self):
425426 )
426427
427428 def test_fingerprint_with_filename (self ):
428- filename = "test_outputs/test_fingerprint.csv"
429+ filename = axl_filename ( "test_outputs/test_fingerprint.csv" )
429430 strategy = axl .TitForTat ()
430431 tf = TransitiveFingerprint (strategy )
431432 tf .fingerprint (turns = 1 , repetitions = 1 , progress_bar = False , filename = filename )
@@ -437,7 +438,9 @@ def test_serial_fingerprint(self):
437438 strategy = axl .TitForTat ()
438439 tf = TransitiveFingerprint (strategy )
439440 tf .fingerprint (
440- repetitions = 1 , progress_bar = False , filename = "test_outputs/tran_fin.csv"
441+ repetitions = 1 ,
442+ progress_bar = False ,
443+ filename = axl_filename ("test_outputs/tran_fin.csv" ),
441444 )
442445 self .assertEqual (tf .data .shape , (50 , 50 ))
443446
@@ -450,7 +453,7 @@ def test_parallel_fingerprint(self):
450453
451454 def test_analyse_cooperation_ratio (self ):
452455 tf = TransitiveFingerprint (axl .TitForTat )
453- filename = "test_outputs/test_fingerprint.csv"
456+ filename = axl_filename ( "test_outputs/test_fingerprint.csv" )
454457 with open (filename , "w" ) as f :
455458 f .write (
456459 """Interaction index,Player index,Opponent index,Repetition,Player name,Opponent name,Actions
0 commit comments