toulouse-maelis: return id on rl2-create (#70176)
This commit is contained in:
parent
9d01872495
commit
5721a84f30
|
@ -615,8 +615,8 @@ class ToulouseMaelis(BaseResource, HTTPResource):
|
|||
'nbAES': family['nbAES'],
|
||||
'rl2': post_data,
|
||||
}
|
||||
self.call('Family', 'updateFamily', **payload)
|
||||
return {'data': 'ok'}
|
||||
response = self.call('Family', 'updateFamily', **payload)
|
||||
return {'data': {'id': response['RL2']['num']}}
|
||||
|
||||
@endpoint(
|
||||
display_category='Famille',
|
||||
|
|
|
@ -26,6 +26,26 @@
|
|||
<isInvoicePdf>false</isInvoicePdf>
|
||||
</contact>
|
||||
</RL1>
|
||||
<RL2>
|
||||
<num>614062</num>
|
||||
<lastname>DOE</lastname>
|
||||
<firstname>JANNETTE</firstname>
|
||||
<quality>MERE</quality>
|
||||
<civility>MR</civility>
|
||||
<dateBirth>1940-06-22T00:00:00+02:00</dateBirth>
|
||||
<adresse>
|
||||
<idStreet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
|
||||
<num>0</num>
|
||||
<street1>Chateau</street1>
|
||||
<town>Paris</town>
|
||||
<zipcode>75014</zipcode>
|
||||
</adresse>
|
||||
<contact>
|
||||
<isContactMail>false</isContactMail>
|
||||
<isContactSms>false</isContactSms>
|
||||
<isInvoicePdf>false</isInvoicePdf>
|
||||
</contact>
|
||||
</RL2>
|
||||
</familyResult>
|
||||
</ns2:updateFamilyResponse>
|
||||
</soap:Body>
|
||||
|
|
|
@ -1332,7 +1332,7 @@ def test_create_rl2(mocked_post, mocked_get, con, app):
|
|||
resp = app.post_json(url + '?NameID=local', params=params)
|
||||
assert_sent_payload(mocked_post, 'Q_create_rl2.xml')
|
||||
assert resp.json['err'] == 0
|
||||
assert resp.json['data'] == 'ok'
|
||||
assert resp.json['data'] == {'id': '614062'}
|
||||
|
||||
|
||||
def test_create_rl2_not_linked_error(con, app):
|
||||
|
|
Loading…
Reference in New Issue