Skip to content

Commit fe617ee

Browse files
committed
Remove all temp files in tests.
1 parent 877b989 commit fe617ee

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ cache.txt
1313
test.csv
1414
summary.csv
1515
basic_tournament.csv
16+
test_outputs/*csv

axelrod/tests/unit/test_resultset.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class TestResultSet(unittest.TestCase):
1515
@classmethod
1616
def setUpClass(cls):
1717

18-
cls.filename = "test_results.csv"
18+
cls.filename = "test_outputs/test_results.csv"
1919

2020
cls.players = (axelrod.Alternator(), axelrod.TitForTat(), axelrod.Defector())
2121
cls.turns = 5
@@ -427,7 +427,7 @@ def test_write_summary(self):
427427

428428

429429
class TestResultSetFromFile(unittest.TestCase):
430-
filename = "test_results_from_file.csv"
430+
filename = "test_outputs/test_results_from_file.csv"
431431
players = [axelrod.Cooperator(),
432432
axelrod.TitForTat(),
433433
axelrod.Defector()]
@@ -490,7 +490,7 @@ def test_interactions_equality(self):
490490
max_repetitions=3))
491491
@settings(max_examples=50, timeout=0)
492492
def test_equality_with_round_robin(self, tournament):
493-
filename = "test_results.csv"
493+
filename = "test_outputs/test_results.csv"
494494
tournament.play(filename=filename, progress_bar=False,
495495
build_results=False)
496496
brs = axelrod.ResultSetFromFile(filename, progress_bar=False)
@@ -509,7 +509,7 @@ def test_equality_with_round_robin(self, tournament):
509509
max_repetitions=3))
510510
@settings(max_examples=50, timeout=0)
511511
def test_equality_with_prob_end(self, tournament):
512-
filename = "test_results.csv"
512+
filename = "test_outputs/test_results.csv"
513513
tournament.play(filename=filename, progress_bar=False,
514514
build_results=False)
515515
brs = axelrod.ResultSetFromFile(filename, progress_bar=False)

axelrod/tests/unit/test_tournament.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def setUpClass(cls):
6262
[200, 200, 1, 200, 200],
6363
[200, 200, 1, 200, 200]]
6464

65-
cls.filename = "test_results.csv"
65+
cls.filename = "test_outputs/test_tournament.csv"
6666

6767
def test_init(self):
6868
tournament = axelrod.Tournament(

test_outputs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This directory contains output csv files from the test suite.

0 commit comments

Comments
 (0)