toulouse-maelis: child need a num field to update (#71642)
This commit is contained in:
parent
6e1be35e94
commit
dd8eea06e9
|
@ -117,7 +117,7 @@ ADDRESS_SCHEMA = {
|
|||
'required': ['street1', 'town', 'zipcode'],
|
||||
'properties': {
|
||||
'num': {
|
||||
'description': 'numéro',
|
||||
'description': "Numéro de l'adresse",
|
||||
'oneOf': [{'type': 'string'}, {'type': 'null'}],
|
||||
},
|
||||
'numComp': {
|
||||
|
@ -428,6 +428,10 @@ CHILD_SCHEMA = {
|
|||
'type': 'object',
|
||||
'required': ['sexe', 'firstname', 'lastname', 'birth'],
|
||||
'properties': {
|
||||
'num': {
|
||||
'description': "Numéro de l'enfant",
|
||||
'oneOf': [{'type': 'string'}, {'type': 'null'}],
|
||||
},
|
||||
'sexe': {
|
||||
'description': 'Sexe (depuis référentiel)',
|
||||
'type': 'string',
|
||||
|
|
|
@ -56,6 +56,15 @@
|
|||
<code>PAIALI</code>
|
||||
</paiInfoBean>
|
||||
</childList>
|
||||
<childList>
|
||||
<num>613880</num>
|
||||
<firstname>Brunelle</firstname>
|
||||
<lastname>Doe</lastname>
|
||||
<sexe>F</sexe>
|
||||
<birth>
|
||||
<dateBirth>1943-01-19</dateBirth>
|
||||
</birth>
|
||||
</childList>
|
||||
<emergencyPersonList>
|
||||
<personList>
|
||||
<civility>MME</civility>
|
||||
|
|
|
@ -1258,7 +1258,7 @@ def test_update_family(mocked_post, mocked_get, con, app):
|
|||
'emergencyPersonList/0/personList/0/sexe': 'F',
|
||||
'emergencyPersonList/0/personList/0/dateBirth': '1982-12-20',
|
||||
'emergencyPersonList/0/personList/0/quality': 'T',
|
||||
'childList/0/lastname': 'Zimmerman',
|
||||
'childList/0/lastname': 'Zimmerman', # add child
|
||||
'childList/0/firstname': 'Robert',
|
||||
'childList/0/sexe': 'M',
|
||||
'childList/0/birth/dateBirth': '1941-05-24',
|
||||
|
@ -1267,6 +1267,11 @@ def test_update_family(mocked_post, mocked_get, con, app):
|
|||
'childList/0/paiInfoBean/code': 'PAIALI',
|
||||
'childList/0/medicalRecord/vaccinList/0/code': 'DTC',
|
||||
'childList/0/medicalRecord/vaccinList/0/vaccinationDate': '1940-07-26',
|
||||
'childList/1/num': '613880', # update child
|
||||
'childList/1/firstname': 'Brunelle',
|
||||
'childList/1/lastname': 'Doe',
|
||||
'childList/1/birth/dateBirth': '1943-01-19',
|
||||
'childList/1/sexe': 'F',
|
||||
}
|
||||
|
||||
Link.objects.create(resource=con, family_id='1312', name_id='local')
|
||||
|
|
Loading…
Reference in New Issue