|
@ -2,9 +2,10 @@ from contextlib import contextmanager |
|
|
from importlib import reload |
|
|
from importlib import reload |
|
|
from os import environ |
|
|
from os import environ |
|
|
|
|
|
|
|
|
from django.conf import settings |
|
|
|
|
|
from django.test import TestCase |
|
|
from django.test import TestCase |
|
|
|
|
|
|
|
|
|
|
|
from app import settings |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestDatabaseUrl(TestCase): |
|
|
class TestDatabaseUrl(TestCase): |
|
|
def test_sslmode_defaults_to_required(self): |
|
|
def test_sslmode_defaults_to_required(self): |
|
@ -42,4 +43,3 @@ def setenv(key, value): |
|
|
reload(settings) |
|
|
reload(settings) |
|
|
yield |
|
|
yield |
|
|
del environ[key] |
|
|
del environ[key] |
|
|
|
|
|
|