Skip to content

Commit

Permalink
Various spacing and PEP 8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcharper committed Aug 20, 2017
1 parent 710f219 commit 3098223
Show file tree
Hide file tree
Showing 7 changed files with 324 additions and 319 deletions.
1 change: 0 additions & 1 deletion axelrod/tests/unit/test_filters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import operator
import unittest
from hypothesis import given, example
from hypothesis.strategies import integers
Expand Down
1 change: 0 additions & 1 deletion axelrod/tests/unit/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ def test_add_loops(self):
[(0, 1), (1, 0), (0, 2), (2, 0), (1, 2),
(2, 1), (0, 0), (1, 1), (2, 2)])


def test_out_dict(self):
# Undirected graph with vertices and unweighted edges
g = graph.Graph(edges=[[1, 2], [2, 3]])
Expand Down
2 changes: 1 addition & 1 deletion axelrod/tests/unit/test_interaction_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class TestMatch(unittest.TestCase):
Counter({((C, C), D): 1})],
None]

sparklines = [ '█ \n █', ' \n██', '██\n█ ', None ]
sparklines = ['█ \n █', ' \n██', '██\n█ ', None ]

def test_compute_scores(self):
for inter, score in zip(self.interactions, self.scores):
Expand Down
2 changes: 1 addition & 1 deletion axelrod/tests/unit/test_match.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from collections import Counter
import unittest

from hypothesis import given, example
from hypothesis.strategies import integers, floats, assume
Expand Down
1 change: 0 additions & 1 deletion axelrod/tests/unit/test_moran.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ def test_iter(self):
mp = MoranProcess((p1, p2))
self.assertEqual(mp.__iter__(), mp)


def test_population_plot(self):
# Test that can plot on a given matplotlib axes
axelrod.seed(15)
Expand Down
9 changes: 3 additions & 6 deletions axelrod/tests/unit/test_property.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import unittest
from hypothesis import given, settings
import axelrod
from axelrod.tests.property import (strategy_lists,
matches, tournaments,
prob_end_tournaments, spatial_tournaments,
prob_end_spatial_tournaments,
games)
from axelrod.tests.property import (
strategy_lists, matches, tournaments, prob_end_tournaments,
spatial_tournaments, prob_end_spatial_tournaments, games)

stochastic_strategies = [s for s in axelrod.strategies if
s().classifier['stochastic']]
Expand Down Expand Up @@ -164,7 +162,6 @@ def test_decorator_with_given_strategies(self, tournament):
self.assertIn(str(p), basic_player_names)



class TestProbEndSpatialTournament(unittest.TestCase):

def test_call(self):
Expand Down
Loading

0 comments on commit 3098223

Please sign in to comment.