17 lines
431 B
Python
17 lines
431 B
Python
from server.settings import * # noqa: F403
|
|
|
|
from config.conf_test import TEST_DATABASES
|
|
from django.core.exceptions import ImproperlyConfigured
|
|
|
|
|
|
DATABASES = TEST_DATABASES
|
|
|
|
if (
|
|
DATABASES["default"].get("NAME") != "test_ehs_develop"
|
|
or DATABASES["default"].get("TEST", {}).get("NAME")
|
|
!= "test_ehs_develop"
|
|
):
|
|
raise ImproperlyConfigured(
|
|
"Test settings must only use the test_ehs_develop database."
|
|
)
|