toulouse_axel: fix random failing (and bad written) test

This commit is contained in:
Lauréline Guérin 2020-02-14 14:46:44 +01:00
parent 11214a4ef4
commit 455f7c7d81
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 3 additions and 3 deletions

View File

@ -633,7 +633,7 @@ def test_unlink_endpoint(app, resource):
assert resp.json['deleted'] is True
def test_refetential_endpoint_no_result(app, resource):
def test_referential_endpoint_no_result(app, resource):
resp = app.get('/toulouse-axel/test/referential/foo/')
assert resp.json['err_desc'] == "Referential not found"
assert resp.json['err'] == 'not-found'
@ -645,10 +645,10 @@ def test_refetential_endpoint_no_result(app, resource):
('lien_parente', lien_parente_mapping),
('type_regime', type_regime_mapping),
])
def test_refetential_endpoint(app, resource, code, mapping):
def test_referential_endpoint(app, resource, code, mapping):
resp = app.get('/toulouse-axel/test/referential/%s/' % code)
expected = [{'id': k, 'text': v} for k, v in mapping.items()]
assert dict(resp.json['data']) == dict(expected)
assert resp.json['data'] == expected
def test_family_info_endpoint_axel_error(app, resource):