toulouse-maelis: add content on read_nursery_list test (#74446)

This commit is contained in:
Nicolas Roche 2023-02-22 17:21:47 +01:00 committed by Gitea
parent 761391c484
commit f467587386
1 changed files with 31 additions and 0 deletions

View File

@ -7601,6 +7601,37 @@ def test_read_nursery_list(con, app):
resp = app.get(url, params={'code_psu': 'REGULAR'})
assert len(resp.json['data']) == 9
assert resp.json['data'][0] == {
'id': 'M10000000001',
'obs1': 'Quartier 1.2',
'obs2': 'Secteur 1',
'text': 'CC AMIDONNIERS',
'place': {
'address': {
'num': 29,
'town': 'TOULOUSE',
'street1': 'ALL DE BRIENNE',
'street2': None,
'zipcode': '31000',
'idStreet': None,
},
'idPlace': 'M10053212401',
'libelle': 'CC AMIDONNIERS',
'latitude': 43.606099,
'libelle2': None,
'longitude': 1.430282,
},
'libelle': 'CC AMIDONNIERS',
'libelle2': None,
'manager1': {'phone': '0561615590', 'poste': 'CCAS', 'lastname': 'THOMAS', 'firstname': 'GUYLAINE'},
'manager2': None,
'unitList': [
{'idUnit': 'M10053212402', 'libelle': 'CC AMIDONNIERS - Réguliers', 'typeAcc': 'REGULAR'},
{'idUnit': 'M10053212403', 'libelle': 'CC AMIDONNIERS - Occasionnels', 'typeAcc': 'OCCASIONAL'},
],
'idActivity': 'M10000000001',
'activityType': {'code': 'CRECHCO', 'libelle': 'Crèche collective'},
}
def test_get_nursery_geojson(con, app):