Skip to content

Commit bc5f642

Browse files
committed
Move tests into their own directory
As we add more tests this will make it easier to navigate.
1 parent 99c5628 commit bc5f642

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pip_check_reqs/test_find_missing_reqs.py renamed to tests/test_find_missing_reqs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import pytest
1212
import pretend
1313

14-
from . import find_missing_reqs
14+
from pip_check_reqs import find_missing_reqs
1515

1616

1717
@pytest.fixture

tox.ini

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ deps =
66
-r{toxinidir}/requirements.txt
77
-r{toxinidir}/test-requirements.txt
88
commands =
9-
coverage run --source pip_check_reqs/find_missing_reqs.py \
9+
coverage run --source pip_check_reqs/ \
1010
-m pytest --strict []
1111
coverage report -m --fail-under 100
1212

@@ -19,10 +19,9 @@ norecursedirs = .git .tox *.egg build
1919

2020
[testenv:pep8]
2121
deps = flake8
22-
commands = flake8 pip_check_reqs
22+
commands = flake8 pip_check_reqs tests
2323

2424
[testenv:pip-missing-reqs]
2525
# Overwrite deps so not to dirty the environment
2626
deps = -r{toxinidir}/requirements.txt
27-
commands = python -m pip_check_reqs.find_missing_reqs \
28-
--ignore-file=pip_check_reqs/test* pip-check-reqs
27+
commands = python -m pip_check_reqs.find_missing_reqs pip_check_reqs

0 commit comments

Comments
 (0)