toulouse-maelis: add content on read_nursery_list test (#74446)
This commit is contained in:
parent
761391c484
commit
f467587386
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue