|
|
|
@ -904,7 +904,13 @@ def test_read_family(family_service, xml, con, app):
|
|
|
|
|
'dietcode_text': '3- RÉGIME SANS VIANDE',
|
|
|
|
|
'bPhoto': True,
|
|
|
|
|
'bLeaveAlone': False,
|
|
|
|
|
'insurance': None,
|
|
|
|
|
'insurance': {
|
|
|
|
|
'company': 'Total Disaster Insurance',
|
|
|
|
|
'contractEnd': '2022-12-31T00:00:00+01:00',
|
|
|
|
|
'contractNumber': '123',
|
|
|
|
|
'contractStart': '2022-01-01T00:00:00+01:00',
|
|
|
|
|
'memberNumber': '456',
|
|
|
|
|
},
|
|
|
|
|
'subscribeSchoolList': [],
|
|
|
|
|
'mother': {'num': 613963, 'civility': 'MME', 'firstname': 'JANE', 'lastname': 'DOE'},
|
|
|
|
|
'father': {'num': 613878, 'civility': 'M.', 'firstname': 'JHON', 'lastname': 'DOE'},
|
|
|
|
@ -1293,6 +1299,11 @@ def test_create_family(family_service, con, app):
|
|
|
|
|
'childList/0/dietcode': 'RSV',
|
|
|
|
|
'childList/0/medicalRecord/vaccinList/0/code': 'DTC',
|
|
|
|
|
'childList/0/medicalRecord/vaccinList/0/vaccinationDate': '1940-07-26',
|
|
|
|
|
'childList/0/insurance/company': 'Total Disaster Insurance',
|
|
|
|
|
'childList/0/insurance/contractNumber': '123',
|
|
|
|
|
'childList/0/insurance/memberNumber': '456',
|
|
|
|
|
'childList/0/insurance/contractStart': '2022-01-01',
|
|
|
|
|
'childList/0/insurance/contractEnd': '2022-12-31',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
resp = app.post_json(url + '?NameID=local', params=params)
|
|
|
|
@ -1447,6 +1458,11 @@ def test_update_family(family_service, con, app):
|
|
|
|
|
'childList/0/paiInfoBean/code': 'PAIALI',
|
|
|
|
|
'childList/0/medicalRecord/vaccinList/0/code': 'DTC',
|
|
|
|
|
'childList/0/medicalRecord/vaccinList/0/vaccinationDate': '1940-07-26',
|
|
|
|
|
'childList/0/insurance/company': 'Armagedon Colapse',
|
|
|
|
|
'childList/0/insurance/contractNumber': '444',
|
|
|
|
|
'childList/0/insurance/memberNumber': '555',
|
|
|
|
|
'childList/0/insurance/contractStart': '2022-01-02',
|
|
|
|
|
'childList/0/insurance/contractEnd': '2022-12-31',
|
|
|
|
|
'childList/1/num': '613880', # update child
|
|
|
|
|
'childList/1/firstname': 'Brunelle',
|
|
|
|
|
'childList/1/lastname': 'Doe',
|
|
|
|
@ -1967,6 +1983,11 @@ def test_create_child(family_service, con, app):
|
|
|
|
|
'sexe': 'F',
|
|
|
|
|
'birth/dateBirth': '1943-01-19',
|
|
|
|
|
'birth/place': 'Port Arthur',
|
|
|
|
|
'insurance/company': 'Total Disaster Insurance',
|
|
|
|
|
'insurance/contractNumber': '123',
|
|
|
|
|
'insurance/memberNumber': '456',
|
|
|
|
|
'insurance/contractStart': '2022-01-01',
|
|
|
|
|
'insurance/contractEnd': '2022-12-31',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Link.objects.create(resource=con, family_id='1312', name_id='local')
|
|
|
|
@ -2073,6 +2094,11 @@ def test_update_child(family_service, con, app):
|
|
|
|
|
'birth/place': 'Port Arthur',
|
|
|
|
|
'bPhoto': True,
|
|
|
|
|
'bLeaveAlone': False,
|
|
|
|
|
'insurance/company': 'Armagedon Colapse',
|
|
|
|
|
'insurance/contractNumber': '444',
|
|
|
|
|
'insurance/memberNumber': '555',
|
|
|
|
|
'insurance/contractStart': '2022-01-02',
|
|
|
|
|
'insurance/contractEnd': '2022-12-31',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Link.objects.create(resource=con, family_id='1312', name_id='local')
|
|
|
|
|