from universitas_no.settings.base import *
import os
# TEST SETTINGS
# TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
os.environ['REUSE_DB'] = "1"
# TEST_RUNNER = 'discover_runner.DiscoverRunner'
# TEST_DISCOVER_TOP_LEVEL = SITE_ROOT
# TEST_DISCOVER_ROOT = SITE_ROOT
# TEST_DISCOVER_PATTERN = "test_*.py"

# IN-MEMORY TEST DATABASE


DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.sqlite3",
        "NAME": ":memory:",
        "USER": "",
        "PASSWORD": "",
        "HOST": "",
        "PORT": "",
    },

    # 'prodsys': {
    #     "ENGINE": "django.db.backends.sqlite3",
    #     "NAME": ":memory:",
    #     "USER": "",
    #     "PASSWORD": "",
    #     "HOST": "",
    #     "PORT": "",
    # },
}

# ignore the following error when using ipython:
#/django/db/backends/sqlite3/base.py:50: RuntimeWarning:
# SQLite received a naive datetime (2012-11-02 11:20:15.156506) while time zone support is active.

import warnings
warnings.filterwarnings("ignore", category=RuntimeWarning, module='django.db.backends.sqlite3.base', lineno=63)

@@ -1,309 +1,74 @@
-from universitas_no.settings.base import *%0Aimport os%0A# TEST SETTINGS%0A# TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'%0Aos.environ%5B'REUSE_DB'%5D = %221%22%0A# TEST_RUNNER = 'discover_runner.DiscoverRunner'%0A# TEST_DISCOVER_TOP_LEVEL = SITE_ROOT%0A# TEST_DISCOVER_ROOT = SITE_ROOT%0A# TEST_DISCOVER_PATTERN = %22test_*.py%22
+%22%22%22 Settings for running tests %22%22%22%0Afrom .base import *%0Aimport warnings
 %0A%0A# 
@@ -91,18 +91,16 @@
 ATABASE%0A
-%0A%0A
 DATABASE
@@ -293,210 +293,75 @@
  %7D,%0A
-%0A    # 'prodsys': %7B%0A    #     %22ENGINE%22: %22django.db.backends.sqlite3%22,%0A    #     %22NAME%22: %22:memory:%22,%0A    #     %22USER%22: %22%22,%0A    #     %22PASSWORD%22: %22%22,%0A    #     %22HOST%22: %22%22,%0A    #     %22PORT%22: %22%22,%0A    # %7D,%0A%7D
+%7D%0A%0AEMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
 %0A%0A# 
@@ -564,32 +564,16 @@
 ctive.%0A%0A
-import warnings%0A
 warnings

clean up testing django settings file