Commit df6b941f authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[test] Test the case of list* attributes in XSD export

parent 3fa67299e3b7
......@@ -298,6 +298,17 @@ class SEDAXSDExportTC(XmlTestMixin, CubicWebTC):
'minOccurs': '0'})
# XXX also fix listSchemeURI ?
sample_clv = self.xpath(profile, '//xs:element[@name="ReplyCodeListVersion"]')
[{'name': 'listAgencyID', 'use': 'optional', 'type': 'xsd:token'},
{'name': 'listAgencyName', 'use': 'optional', 'type': 'xsd:string'},
{'name': 'listID', 'use': 'optional', 'type': 'xsd:token'},
{'name': 'listName', 'use': 'optional', 'type': 'xsd:string'},
{'name': 'listSchemeURI', 'use': 'optional', 'type': 'xsd:anyURI'},
{'name': 'listURI', 'use': 'optional', 'type': 'xsd:anyURI'},
{'name': 'listVersionID', 'use': 'optional', 'type': 'xsd:token'}])
def profile_etree(self, transfer_entity):
"""Return etree representation of profile's XSD for the given transfer entity"""
xsd = transfer_entity.cw_adapt_to('SEDA-2.0.xsd').dump()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment