Skip to content

Commit aa1b9d0

Browse files
committed
Move tests under pylint_django. Fixes #129
1 parent 180d4e8 commit aa1b9d0

35 files changed

+7
-2
lines changed

.coveragerc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
21
[run]
32
source=pylint_django
3+
4+
[report]
5+
omit=pylint_django/tests/*
File renamed without changes.
File renamed without changes.

test/test_func.py renamed to pylint_django/tests/test_func.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
sys.path.append(os.path.join(os.path.dirname(pylint.__file__), 'test'))
99
import test_functional
1010

11+
# alter sys.path again because the tests now live as a subdirectory
12+
# of pylint_django
13+
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..'))
1114
from pylint_django.compat import django_version
1215

1316

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ commands =
1414
flake8: flake8
1515
pylint: pylint --rcfile=tox.ini pylint_django setup
1616
readme: python setup.py check --restructuredtext --strict
17-
py{27,34,35,36}-django{111,20}: coverage run test/test_func.py
17+
py{27,34,35,36}-django{111,20}: coverage run pylint_django/tests/test_func.py
1818
clean: find . -type f -name '*.pyc' -delete
1919
clean: find . -type d -name __pycache__ -delete
2020
clean: rm -rf build/ .cache/ dist/ .eggs/ pylint_django.egg-info/ .tox/

0 commit comments

Comments
 (0)