Skip to content

Commit

Permalink
Move 'runtests' out of the package root directory
Browse files Browse the repository at this point in the history
Running the test suite out of 'tests/' prevents adding the package root
to 'sys.path', which would cause the local 'rest_framework' files to
conflict with the installed package/distribution.
  • Loading branch information
Ryan P Kilby committed Aug 23, 2018
1 parent a959e2e commit e181956
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ DJANGO =
master: djangomaster

[testenv]
commands = ./runtests.py --fast --coverage {posargs}
commands = python tests/runtests.py --fast --coverage {posargs}
envdir = {toxworkdir}/venvs/{envname}
setenv =
PYTHONDONTWRITEBYTECODE=1
Expand All @@ -34,15 +34,15 @@ deps =
-rrequirements/requirements-testing.txt

[testenv:dist]
commands = ./runtests.py --fast --no-pkgroot --staticfiles {posargs}
commands = python tests/runtests.py --fast --no-pkgroot --staticfiles {posargs}
deps =
django
-rrequirements/requirements-testing.txt
-rrequirements/requirements-optionals.txt

[testenv:lint]
basepython = python2.7
commands = ./runtests.py --lintonly
commands = python tests/runtests.py --lintonly
deps =
-rrequirements/requirements-codestyle.txt
-rrequirements/requirements-testing.txt
Expand Down

0 comments on commit e181956

Please sign in to comment.