From 87093d4921153002076abc8de7ace4ea1e9835a9 Mon Sep 17 00:00:00 2001 From: Christopher Broderick Date: Mon, 28 Oct 2024 20:35:58 +0000 Subject: [PATCH] Compare the embedded dicts to get the diff --- tests/test_values.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_values.py b/tests/test_values.py index 073180a..f51ac78 100644 --- a/tests/test_values.py +++ b/tests/test_values.py @@ -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', @@ -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):