aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2011-03-13 17:13:18 +0000
committerTom Christie2011-03-13 17:13:18 +0000
commit0f0fd13d1358863c2fd92bb75d32d411e84730eb (patch)
tree27e988c69a5c0c7aecb808e0a109d25976b40499
parentbed7d8c3a99425b8dfa5c5a9c6b1d49a46f5284f (diff)
downloaddjango-rest-framework-0f0fd13d1358863c2fd92bb75d32d411e84730eb.tar.bz2
test refactoring
-rw-r--r--djangorestframework/tests/runtests.py29
-rw-r--r--djangorestframework/tests/urls.py7
2 files changed, 0 insertions, 36 deletions
diff --git a/djangorestframework/tests/runtests.py b/djangorestframework/tests/runtests.py
deleted file mode 100644
index 3043c7b6..00000000
--- a/djangorestframework/tests/runtests.py
+++ /dev/null
@@ -1,29 +0,0 @@
-'''
-Created on Mar 10, 2011
-
-@author: tomchristie
-'''
-# http://ericholscher.com/blog/2009/jun/29/enable-setuppy-test-your-django-apps/
-# http://www.travisswicegood.com/2010/01/17/django-virtualenv-pip-and-fabric/
-from django.conf import settings
-from django.core.management import call_command
-
-def runtests():
- settings.configure(
- INSTALLED_APPS=(
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.sites',
- 'django.contrib.messages',
- 'djangorestframework',
- ),
- ROOT_URLCONF='djangorestframework.tests.urls',
- # Django replaces this, but it still wants it. *shrugs*
- DATABASE_ENGINE='sqlite3'
- )
- call_command('test', 'djangorestframework')
-
-
-if __name__ == '__main__':
- runtests()
diff --git a/djangorestframework/tests/urls.py b/djangorestframework/tests/urls.py
deleted file mode 100644
index 45555813..00000000
--- a/djangorestframework/tests/urls.py
+++ /dev/null
@@ -1,7 +0,0 @@
-"""
-Blank URLConf just to keep runtests.py happy.
-"""
-from django.conf.urls.defaults import *
-
-urlpatterns = patterns('',
-) \ No newline at end of file