From 62edf1448b772f100824d7a5c653df6a80141896 Mon Sep 17 00:00:00 2001 From: Johannes Laurin Hoermann Date: Fri, 7 Jun 2024 10:57:44 +0200 Subject: [PATCH] TST: fixed config and versions route tests --- tests/test_config_route.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_config_route.py b/tests/test_config_route.py index d0a00ba..e81125a 100644 --- a/tests/test_config_route.py +++ b/tests/test_config_route.py @@ -22,7 +22,8 @@ def test_config_info_route(tmp_app_with_users, snowwhite_token): # NOQA response = json.loads(r.data.decode("utf-8")) - assert compare_nested(expected_content, response) + assert "config" in response + assert compare_nested(expected_content, response["config"]) def test_config_version_route(tmp_app_with_users): # NOQA @@ -38,4 +39,5 @@ def test_config_version_route(tmp_app_with_users): # NOQA response = json.loads(r.data.decode("utf-8")) - assert compare_nested(expected_content, response) + assert "versions" in response + assert compare_nested(expected_content, response["versions"])