Resolves test issues with Python 3.12 (#6902)

This commit is contained in:
Trenton H
2024-06-03 12:33:46 -07:00
committed by GitHub
parent de7c22e8d6
commit 6d2ae3df1f
3 changed files with 67 additions and 52 deletions

View File

@@ -70,12 +70,13 @@ class TestApiAppConfig(DirectoriesMixin, APITestCase):
config.app_logo = "/logo/example.jpg"
config.save()
response = self.client.get("/api/ui_settings/", format="json")
self.assertDictContainsSubset(
self.assertDictEqual(
response.data["settings"],
{
"app_title": config.app_title,
"app_logo": config.app_logo,
},
response.data["settings"],
}
| response.data["settings"],
)
def test_api_update_config(self):