mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-04-30 23:24:42 +00:00
Made the testrunner Django 1.2 compatible.
This commit is contained in:
parent
ee4f42f851
commit
f04c200c09
1 changed files with 2 additions and 3 deletions
|
|
@ -8,12 +8,11 @@ parent = os.path.dirname(os.path.dirname(os.path.dirname(
|
|||
|
||||
sys.path.insert(0, parent)
|
||||
|
||||
from django.test.utils import get_runner
|
||||
from django.test.simple import run_tests
|
||||
from django.conf import settings
|
||||
|
||||
def runtests():
|
||||
test_runner = get_runner(settings)
|
||||
failures = test_runner(['tests'], verbosity=1, interactive=True)
|
||||
failures = run_tests(['tests'], verbosity=1, interactive=True)
|
||||
sys.exit(failures)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Reference in a new issue