diff --git a/runtests.py b/runtests.py index 8f2bf8d7..3572e11a 100644 --- a/runtests.py +++ b/runtests.py @@ -12,6 +12,8 @@ # `DATABASES` value be present and configured in order to # do anything. +import sys + import django from django.conf import settings from django.core.management import call_command @@ -34,4 +36,4 @@ django.setup() # Start the test suite now that the settings are configured. -call_command("test", "tests") +call_command("test", *sys.argv[1:]) diff --git a/tox.ini b/tox.ini index 08bcc591..20b18e01 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,7 @@ envlist = django{18,19,110,111} [testenv] commands = - python runtests.py + python runtests.py {posargs:tests} deps = mock django18: Django>=1.8,<1.9