Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Oct 25, 2016
1 parent e5637c8 commit 68a8dcd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2016-10-25 horneds

* Version 7.2.0
* Replace PEP8 with pycodestyle (c) Serg Baburin

2015-08-17 k.klenov

* --abspath
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ upload: clean

.PHONY: t
t test:
@py.test -sx tests.py
@py.test -sx test_pylama.py

.PHONY: audit
audit:
Expand Down
2 changes: 1 addition & 1 deletion tests.py → test_pylama.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_ignore_select():
options.ignore = ['E301', 'D102']
options.linters = ['pycodestyle', 'pydocstyle', 'pyflakes', 'mccabe']
errors = run('dummy.py', options=options)
assert len(errors) == 17
assert len(errors) == 16

options.ignore = ['E3', 'D']
errors = run('dummy.py', options=options)
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ norecursedirs = *
[testenv]
commands=
py.test --pylama pylama
py.test tests.py -s
py.test test_pylama.py -s
deps =
pytest

Expand All @@ -22,7 +22,7 @@ deps =
coverage
{[testenv]deps}
commands =
coverage run --source pylama -m py.test tests.py
coverage run --source pylama -m py.test test_pylama.py
coverage report

[pylama]
Expand All @@ -49,5 +49,5 @@ ignore = C901,R0914
[pylama:pylama/main.py]
ignore = R0914,W0212,C901,E1103

[pylama:tests.py]
[pylama:test_pylama.py]
ignore = D,E1103

0 comments on commit 68a8dcd

Please sign in to comment.