Permalink
Browse files

Move the unit tests into the app itself

Also remove the test app
  • Loading branch information...
1 parent 2db1e36 commit b9ccea8af03818b683d2f072343950697ca8db92 Nicolas Kuttler committed Mar 2, 2012
@@ -1,3 +0,0 @@
-from django.db import models
-
-# Create your models here.
@@ -1 +0,0 @@
-# Create your views here.
View
@@ -0,0 +1,6 @@
+db.sqlite:
+ python manage.py syncdb --noinput
+
+.PHONY: test
+test: db.sqlite
+ PYTHONPATH=.. python manage.py test
View
@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+import os, sys
+
+if __name__ == "__main__":
+ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings")
+ sys.path.insert(0, os.path.abspath('%s/..' % os.getcwd()))
+
+ from django.core.management import execute_from_command_line
+
+ execute_from_command_line(sys.argv)
@@ -4,7 +4,7 @@
from django.http import Http404
from django.views.generic import TemplateView
-import settings
+from django.conf import settings
class VerificationView(TemplateView):

0 comments on commit b9ccea8

Please sign in to comment.