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

Enhanced assertion message to debug failures

parent 52b9604c5912
......@@ -1094,7 +1094,9 @@ class SEDA1XSDExport(SEDA2XSDExport):
XAttr('uri', 'xsd:anyURI'),
references = list(data_object.referenced_by)
assert len(references) == 1
assert len(references) == 1, (
'Unexpected number of references in document {} of {}: {}'.format(
data_object.eid, data_object.container[0].eid, references))
seq = references[0]
self.element_schema(document_node, 'Type', 'qdt:CodeDocumentType',
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