mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Merge pull request #150 from blaze33/master
Fix RemovedInDjango19Warning and test_database_url_value
This commit is contained in:
commit
407af2e27d
2 changed files with 3 additions and 2 deletions
|
|
@ -4,9 +4,9 @@ import sys
|
|||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.utils import six
|
||||
try:
|
||||
from django.utils.importlib import import_module
|
||||
except ImportError:
|
||||
from importlib import import_module
|
||||
except ImportError:
|
||||
from django.utils.importlib import import_module
|
||||
|
||||
|
||||
def isuppercase(name):
|
||||
|
|
|
|||
|
|
@ -357,6 +357,7 @@ class ValueTests(TestCase):
|
|||
with env(DATABASE_URL='sqlite://'):
|
||||
self.assertEqual(value.setup('DATABASE_URL'), {
|
||||
'default': {
|
||||
'CONN_MAX_AGE': 0,
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'HOST': '',
|
||||
'NAME': ':memory:',
|
||||
|
|
|
|||
Loading…
Reference in a new issue