toulouse_maelis: flagCom is now returned by readFamily (#67782)

This commit is contained in:
Nicolas Roche 2022-07-27 11:42:51 +02:00
parent b9f01eeb42
commit 79d3cdbe60
2 changed files with 21 additions and 0 deletions

View File

@ -6,6 +6,7 @@
<number>196514</number>
<category>BI</category>
<situation>M</situation>
<flagCom>true</flagCom>
<nbChild>2</nbChild>
<nbTotalChild>2</nbTotalChild>
<RL1>

View File

@ -521,6 +521,26 @@ def test_read_family(mocked_post, mocked_get, con, app):
resp = app.get(url + '?NameID=local')
assert resp.json['err'] == 0
data = resp.json['data']
del data['RL1']
del data['RL2']
del data['childList']
del data['authorizedPersonList']
del data['emergencyPersonList']
assert data == {
'number': 196514,
'category': 'BI',
'situation': 'M',
'flagCom': True,
'nbChild': 2,
'nbTotalChild': 2,
'nbAES': None,
'quotientList': [],
'indicatorList': [],
'childErrorList': [],
'category_text': 'BIPARENTALE',
'situation_text': 'Marié (e)',
}
assert resp.json['data']['RL1'] == {
'num': '613878',
'lastname': 'COSTANZE',