toulouse-maelis: ajouter le département aux informations de naissances #209

Merged
nroche merged 8 commits from wip/76608-parsifal-birth-county into main 2023-04-17 17:28:51 +02:00
2 changed files with 7 additions and 1 deletions
Showing only changes of commit ba7cf207b7 - Show all commits

View File

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

View File

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