mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Fix failing test due to external library change
This commit is contained in:
parent
ba24d3c324
commit
63cac8d54e
1 changed files with 6 additions and 3 deletions
|
|
@ -373,17 +373,20 @@ class ValueTests(TestCase):
|
||||||
value = DatabaseURLValue()
|
value = DatabaseURLValue()
|
||||||
self.assertEqual(value.default, {})
|
self.assertEqual(value.default, {})
|
||||||
with env(DATABASE_URL='sqlite://'):
|
with env(DATABASE_URL='sqlite://'):
|
||||||
self.assertEqual(value.setup('DATABASE_URL'), {
|
settings_value = value.setup('DATABASE_URL')
|
||||||
'default': {
|
# Compare the embedded dicts in the "default" entry so that the difference can be seen if
|
||||||
|
# it fails ... DatabaseURLValue(|) uses an external app that can add additional entries
|
||||||
|
self.assertDictEqual({
|
||||||
'CONN_HEALTH_CHECKS': False,
|
'CONN_HEALTH_CHECKS': False,
|
||||||
'CONN_MAX_AGE': 0,
|
'CONN_MAX_AGE': 0,
|
||||||
|
'DISABLE_SERVER_SIDE_CURSORS': False,
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.sqlite3',
|
||||||
'HOST': '',
|
'HOST': '',
|
||||||
'NAME': ':memory:',
|
'NAME': ':memory:',
|
||||||
'PASSWORD': '',
|
'PASSWORD': '',
|
||||||
'PORT': '',
|
'PORT': '',
|
||||||
'USER': '',
|
'USER': '',
|
||||||
}})
|
}, settings_value['default'])
|
||||||
|
|
||||||
def test_database_url_additional_args(self):
|
def test_database_url_additional_args(self):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue