[tests][fix] compares the json interpreted value instead of the string
This commit is contained in:
parent
01333a200c
commit
aefe448717
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue