Skip to content

Commit

Permalink
Move tests under pylint_django. Fixes #129
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Mar 5, 2018
1 parent 180d4e8 commit de8ebdd
Show file tree
Hide file tree
Showing 36 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

[run]
source=pylint_django

[report]
omit=pylint_django/tests/*
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions test/test_func.py → pylint_django/tests/test_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
sys.path.append(os.path.join(os.path.dirname(pylint.__file__), 'test'))
import test_functional

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


Expand Down
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
PYTHONPATH=. python test/test_func.py
python pylint_django/tests/test_func.py
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ commands =
flake8: flake8
pylint: pylint --rcfile=tox.ini pylint_django setup
readme: python setup.py check --restructuredtext --strict
py{27,34,35,36}-django{111,20}: coverage run test/test_func.py
py{27,34,35,36}-django{111,20}: coverage run pylint_django/tests/test_func.py
clean: find . -type f -name '*.pyc' -delete
clean: find . -type d -name __pycache__ -delete
clean: rm -rf build/ .cache/ dist/ .eggs/ pylint_django.egg-info/ .tox/
Expand Down

0 comments on commit de8ebdd

Please sign in to comment.