toulouse-maelis: ajouter le département aux informations de naissances #209
|
@ -13,6 +13,10 @@
|
|||
<code>64001</code>
|
||||
<libelle>AAST</libelle>
|
||||
</itemList>
|
||||
<itemList>
|
||||
<code>91122</code>
|
||||
<libelle>BURES-SUR-YVETTE</libelle>
|
||||
</itemList>
|
||||
</ns2:readTownListResponse>
|
||||
</soap:Body>
|
||||
</soap:Envelope>
|
||||
|
|
|
@ -668,9 +668,10 @@ def test_read_town_list(con, app):
|
|||
url = get_endpoint('read-town-list')
|
||||
resp = app.get(url)
|
||||
assert resp.json['err'] == 0
|
||||
assert len(resp.json['data']) == 3
|
||||
assert len(resp.json['data']) == 4
|
||||
assert resp.json['data'] == [
|
||||
{'code': '64001', 'id': '64001', 'libelle': 'AAST', 'text': 'AAST'},
|
||||
{'code': '91122', 'id': '91122', 'libelle': 'BURES-SUR-YVETTE', 'text': 'BURES-SUR-YVETTE'},
|
||||
{'code': '07120', 'id': '07120', 'libelle': 'LACHAMP-RAPHAEL', 'text': 'LACHAMP-RAPHAEL'},
|
||||
{
|
||||
'code': '69391',
|
||||
|
@ -689,6 +690,7 @@ def test_read_town_list(con, app):
|
|||
resp = app.get(url)
|
||||
assert resp.json['data'] == [
|
||||
{'code': '64001', 'id': '64001', 'libelle': 'AAST', 'text': 'AAST'},
|
||||
{'code': '91122', 'id': '91122', 'libelle': 'BURES-SUR-YVETTE', 'text': 'BURES-SUR-YVETTE'},
|
||||
{
|
||||
'code': '07120',
|
||||
'id': '07120',
|
||||
|
|
Loading…
Reference in New Issue