From aefe448717717d36b536c9142b6b4a888950b819 Mon Sep 17 00:00:00 2001 From: Maxime Alves LIRMM Date: Sat, 14 Jan 2023 10:55:45 +0100 Subject: [PATCH] =?UTF-8?q?[tests][fix]=C2=A0compares=20the=20json=20inter?= =?UTF-8?q?preted=20value=20instead=20of=20the=20string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_dummy_project_router.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_dummy_project_router.py b/tests/test_dummy_project_router.py index c8d9a04..61f9726 100644 --- a/tests/test_dummy_project_router.py +++ b/tests/test_dummy_project_router.py @@ -95,7 +95,7 @@ def test_arguments_route(dummy_project, application_domain): r = c.request('get', path, params=arg) assert r.status_code == 200 for key, val in arg.items(): - assert r.json()[key] == str(val) + assert json.loads(r.json()[key]) == val path = '/async_router/arguments' r = c.request('get', path) assert r.status_code == 400 @@ -105,5 +105,5 @@ def test_arguments_route(dummy_project, application_domain): r = c.request('get', path, params=arg) assert r.status_code == 200 for key, val in arg.items(): - assert r.json()[key] == str(val) + assert json.loads(r.json()[key]) == val