toulouse_axel: fix random failing (and bad written) test
This commit is contained in:
parent
11214a4ef4
commit
455f7c7d81
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue