From 55dd80fa0621d9535bbd7672c57e9c5394a1159b Mon Sep 17 00:00:00 2001 From: Alex Seeholzer Date: Fri, 12 Jun 2015 15:35:58 +0200 Subject: [PATCH] removed unneccessary lines from quicktest.py and added source --- quicktest.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/quicktest.py b/quicktest.py index 5111266b..d4b5a911 100644 --- a/quicktest.py +++ b/quicktest.py @@ -93,6 +93,9 @@ class QuickDjangoTest(object): STATIC_URL = '/static/' ) + # compatibility with django 1.8 downwards + # see: http://stackoverflow.com/questions/3841725/how-to-launch-tests-for-django-reusable-app + try: # Django <= 1.8 from django.test.simple import DjangoTestSuiteRunner @@ -109,11 +112,6 @@ class QuickDjangoTest(object): if failures: sys.exit(failures) - # from django.test.simple import DjangoTestSuiteRunner - # failures = DjangoTestSuiteRunner().run_tests(self.apps, verbosity=1) - # if failures: - # sys.exit(failures) - if __name__ == '__main__': """ What do when the user hits this file from the shell.