Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemyslaw Jan Pietrzak committed Feb 5, 2018
1 parent 5aa8bec commit b66a3fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -8,7 +8,7 @@ test-with-coverage:
py.test ./tests --cov=./pymonet/

lint:
flake8 ./pymonet ./tests --max-line-length=120
flake8 ./pymonet ./tests ./testers --max-line-length=120

lint-docs:
pydocstyle ./pymonet --add-ignore=D100,D101,D102,D103,D104,D105,D107,D200,D205,D400,D401
Expand Down
7 changes: 4 additions & 3 deletions tests/test_semigroups.py
Expand Up @@ -52,16 +52,17 @@ def test_first(text1, text2, text3):
def test_map(integer1, integer2, integer3, boolean1, boolean2, boolean3, text1, text2, text3):
SemigroupLawTester(
semigroup=Map,
value1={ 'sum': Sum(integer1), 'all': All(boolean1), 'first': First(text1) },
value2={ 'sum': Sum(integer2), 'all': All(boolean2), 'first': First(text2) },
value3={ 'sum': Sum(integer3), 'all': All(boolean3), 'first': First(text3) },
value1={'sum': Sum(integer1), 'all': All(boolean1), 'first': First(text1)},
value2={'sum': Sum(integer2), 'all': All(boolean2), 'first': First(text2)},
value3={'sum': Sum(integer3), 'all': All(boolean3), 'first': First(text3)},
result=Map({
'sum': Sum(integer1 + integer2 + integer3),
'all': All(boolean1 and boolean2 and boolean3),
'first': First(text1)
})
).test()


@given(integers(), text(), booleans(), dictionaries(keys=text(), values=integers()))
def test_fold(integer, text, boolean, dictionary):

Expand Down

0 comments on commit b66a3fe

Please sign in to comment.