[test] Specify bdo's user_cardinality in test_seda_0_2_bordereau_ref
authorDenis Laxalde <denis.laxalde@logilab.fr>
Tue, 23 Apr 2019 13:49:15 +0200
changeset 3002 1fe87336af7c
parent 3001 587b718f1284
child 3003 fcb890e6d9d7
[test] Specify bdo's user_cardinality in test_seda_0_2_bordereau_ref In the next changeset, binary data object's user_cardinality will be accounted for when inserting the "Integrity" element in profile whereas it is currently hard-coded to "0..1" (see xsd_integrity() method of SEDA1XSDExport and SEDA02XSDExport classes). In order to prevent changes to generated profile with respect to the "seda_02_bordereau_ref.xml" file, we set the value of user_cardinality created bdo in this test.
test/test_profile_generation.py
--- a/test/test_profile_generation.py	Fri Apr 26 15:04:12 2019 +0200
+++ b/test/test_profile_generation.py	Tue Apr 23 13:49:15 2019 +0200
@@ -970,7 +970,7 @@
 
             create('SEDASystemId', seda_system_id=subunit_alt_seq)
 
-            bdo = testutils.create_data_object(transfer)
+            bdo = testutils.create_data_object(transfer, user_cardinality=u'0..1')
             create('SEDADataObjectReference',
                    seda_data_object_reference=subunit_alt_seq,
                    seda_data_object_reference_id=bdo)