diff options
Diffstat (limited to 'module/web/ajax')
-rw-r--r-- | module/web/ajax/__init__.py | 0 | ||||
-rw-r--r-- | module/web/ajax/models.py | 3 | ||||
-rw-r--r-- | module/web/ajax/tests.py | 23 | ||||
-rw-r--r-- | module/web/ajax/urls.py | 0 | ||||
-rw-r--r-- | module/web/ajax/views.py | 1 |
5 files changed, 27 insertions, 0 deletions
diff --git a/module/web/ajax/__init__.py b/module/web/ajax/__init__.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/module/web/ajax/__init__.py diff --git a/module/web/ajax/models.py b/module/web/ajax/models.py new file mode 100644 index 000000000..71a836239 --- /dev/null +++ b/module/web/ajax/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/module/web/ajax/tests.py b/module/web/ajax/tests.py new file mode 100644 index 000000000..2247054b3 --- /dev/null +++ b/module/web/ajax/tests.py @@ -0,0 +1,23 @@ +""" +This file demonstrates two different styles of tests (one doctest and one +unittest). These will both pass when you run "manage.py test". + +Replace these with more appropriate tests for your application. +""" + +from django.test import TestCase + +class SimpleTest(TestCase): + def test_basic_addition(self): + """ + Tests that 1 + 1 always equals 2. + """ + self.failUnlessEqual(1 + 1, 2) + +__test__ = {"doctest": """ +Another way to test that 1 + 1 is equal to 2. + +>>> 1 + 1 == 2 +True +"""} + diff --git a/module/web/ajax/urls.py b/module/web/ajax/urls.py new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/module/web/ajax/urls.py diff --git a/module/web/ajax/views.py b/module/web/ajax/views.py new file mode 100644 index 000000000..60f00ef0e --- /dev/null +++ b/module/web/ajax/views.py @@ -0,0 +1 @@ +# Create your views here. |