1. Tim Savage
  2. django-extras

Commits

Tim Savage  committed 87b80ef

Added test runner

  • Participants
  • Parent commits fad5f76
  • Branches default

Comments (0)

Files changed (1)

File runtests.py

View file
  • Ignore whitespace
+import os, sys
+from django.conf import settings
+
+DIRNAME = os.path.dirname(__file__)
+settings.configure(DEBUG=True, INSTALLED_APPS=('django_extras'))
+
+from django.test.simple import run_tests
+
+failures = run_tests(['django_extras',], verbosity=1)
+if failures:
+    sys.exit(failures)