Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

create script to run tests

  • Loading branch information...
commit c9a9be99abf326c4418d017a6d85a6515ea3f464 1 parent e3bdef6
Igor Sobreira authored
6  chunks/tests.py
... ...
@@ -0,0 +1,6 @@
  1
+from django.test import TestCase
  2
+
  3
+class ChuckTemplateTagTestCase(TestCase):
  4
+
  5
+    def test_should_pass(self):
  6
+        assert 1
21  runtests.py
... ...
@@ -0,0 +1,21 @@
  1
+import os.path
  2
+import sys
  3
+
  4
+from django.conf import settings
  5
+
  6
+settings.configure(
  7
+    DATABASES = {
  8
+        'default': {
  9
+            'ENGINE': 'django.db.backends.sqlite3',
  10
+            'NAME': os.path.join(os.path.dirname(__file__), 'testdb.sqlite'),
  11
+            }
  12
+        },
  13
+    INSTALLED_APPS = ('chunks',)
  14
+)
  15
+
  16
+from django.test.utils import get_runner
  17
+
  18
+test_runner = get_runner(settings)()
  19
+failures = test_runner.run_tests(['chunks'])
  20
+
  21
+sys.exit(failures)

0 notes on commit c9a9be9

Please sign in to comment.
Something went wrong with that request. Please try again.