[diag / test] Avoid unnecessary transaction in test
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 06 Dec 2017 16:22:16 +0100
changeset 2893 4d7eeccd9f55
parent 2892 2cc69ec08306
child 2894 77695437f8b8
[diag / test] Avoid unnecessary transaction in test
test/test_diag.py
--- a/test/test_diag.py	Wed Dec 06 16:17:51 2017 +0100
+++ b/test/test_diag.py	Wed Dec 06 16:22:16 2017 +0100
@@ -152,9 +152,7 @@
             doctor = transfer.cw_adapt_to('ISEDACompatAnalyzer')
             testutils.create_archive_unit(transfer)
             testutils.create_archive_unit(transfer, user_cardinality=u'0..1')
-            unit2 = testutils.create_archive_unit(transfer, user_cardinality=u'1')[0]
-            cnx.commit()
-            unit2.cw_set(user_cardinality=u'1..n')
+            unit2 = testutils.create_archive_unit(transfer, user_cardinality=u'0..1')[0]
             cnx.commit()
 
             self.assertIsRNGAmbiguous(transfer, True)