0001-iparapheur-use-title-as-identifier-33865.patch
passerelle/contrib/iparapheur/models.py | ||
---|---|---|
149 | 149 |
doc_type = soap_client.get_type('ns0:TypeDoc') |
150 | 150 |
doc = doc_type(content, content_type) |
151 | 151 |
parameters = {'TypeTechnique': typ, |
152 |
'DossierID': 'bof_id_nico',
|
|
152 |
'DossierID': title,
|
|
153 | 153 |
'DossierTitre': title, |
154 | 154 |
'SousType': subtyp, |
155 | 155 |
'Visibilite': visibility, |
tests/test_iparapheur.py | ||
---|---|---|
121 | 121 |
xml = ET.fromstring(mocked_post.call_args[1].get('data')) |
122 | 122 |
req = xml.find('soap:Body', SOAP_NAMESPACES).find('ns1:CreerDossierRequest', SOAP_NAMESPACES) |
123 | 123 |
assert req.find('ns1:DossierTitre', SOAP_NAMESPACES).text == title |
124 |
assert req.find('ns1:DossierID', SOAP_NAMESPACES).text == title |
|
124 | 125 |
assert req.find('ns1:TypeTechnique', SOAP_NAMESPACES).text == typ |
125 | 126 |
assert req.find('ns1:SousType', SOAP_NAMESPACES).text == subtyp |
126 | 127 |
assert req.find('ns1:Visibilite', SOAP_NAMESPACES).text == visibility |
127 |
- |