Commit 245010d3 authored by Antoine Catton's avatar Antoine Catton

Abort the transaction when we are breaking the tree.

This avoid other tests doing Tic to fail.
parent b000b94b
...@@ -2,6 +2,7 @@ from Products.ERP5Type.tests.Sequence import SequenceList ...@@ -2,6 +2,7 @@ from Products.ERP5Type.tests.Sequence import SequenceList
import unittest import unittest
from testVifibSlapWebService import TestVifibSlapWebServiceMixin from testVifibSlapWebService import TestVifibSlapWebServiceMixin
import random import random
import transaction
class TestVifibSlapBug(TestVifibSlapWebServiceMixin): class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
def test_bug_Person_request_more_then_one_instance(self): def test_bug_Person_request_more_then_one_instance(self):
...@@ -808,6 +809,7 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin): ...@@ -808,6 +809,7 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
sla_xml=self.minimal_correct_xml, sla_xml=self.minimal_correct_xml,
state='started' state='started'
) )
transaction.abort()
def test_bug_cyclic_software_instance(self): def test_bug_cyclic_software_instance(self):
"""Check that no cyclic Software Instance trees would be created """Check that no cyclic Software Instance trees would be created
...@@ -938,6 +940,7 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin): ...@@ -938,6 +940,7 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
SelectRequestedReferenceB SelectRequestedReferenceB
LoginDefaultUser # login as superuser in order to work in erp5 LoginDefaultUser # login as superuser in order to work in erp5
Pdb
DirectRequestComputerPartitionRaisesCyclicSoftwareTree DirectRequestComputerPartitionRaisesCyclicSoftwareTree
""" """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
......
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