[tests][fix] compares the json interpreted value instead of the string

This commit is contained in:
Maxime Alves LIRMM 2023-01-14 10:55:45 +01:00
parent 01333a200c
commit aefe448717
1 changed files with 2 additions and 2 deletions

View File

@ -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