Skip to content

Commit

Permalink
Compare the embedded dicts to get the diff
Browse files Browse the repository at this point in the history
  • Loading branch information
uhurusurfa committed Oct 28, 2024
1 parent b30eecb commit 87093d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ def test_database_url_value(self):
value = DatabaseURLValue()
self.assertEqual(value.default, {})
with env(DATABASE_URL='sqlite://'):
settings_value = value.setup('DATABASE_URL')
self.assertDictEqual({
'default': {
'CONN_HEALTH_CHECKS': False,
'CONN_MAX_AGE': 0,
'ENGINE': 'django.db.backends.sqlite3',
Expand All @@ -383,7 +383,7 @@ def test_database_url_value(self):
'PASSWORD': '',
'PORT': '',
'USER': '',
}}, value.setup('DATABASE_URL'))
}, settings_value['default'])

def test_database_url_additional_args(self):

Expand Down

0 comments on commit 87093d4

Please sign in to comment.