Commits

Carl Meyer  committed a1d23d7

Remove support for unsupported Django versions in runtests.py.

  • Participants
  • Parent commits 2338466

Comments (0)

Files changed (1)

 
 
 if not settings.configured:
-    settings_dict = dict(
+    settings.configure(
         INSTALLED_APPS=(
             'localeurl',
             'localeurl.tests',
             'django.contrib.sites', # for sitemap test
             'django.contrib.sessions', # for USE_SESSION
-            ),
+        ),
+        DATABASES={
+            "default": {
+                "ENGINE": "django.db.backends.sqlite3"
+            }
+        },
         ROOT_URLCONF='localeurl.tests.test_urls',
         SITE_ID=1,
-        )
-    if django.VERSION >= (1, 2):
-        settings_dict["DATABASES"] = {
-            "default": {
-                "ENGINE": "django.db.backends.sqlite3"
-                }}
-    else:
-        settings_dict["DATABASE_ENGINE"] = "sqlite3"
-
-    settings.configure(**settings_dict)
+    )
 
 
 if django.VERSION >= (1, 7):