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
import unittest
from testVifibSlapWebService import TestVifibSlapWebServiceMixin
import random
import transaction
class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
def test_bug_Person_request_more_then_one_instance(self):
......@@ -808,6 +809,7 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
sla_xml=self.minimal_correct_xml,
state='started'
)
transaction.abort()
def test_bug_cyclic_software_instance(self):
"""Check that no cyclic Software Instance trees would be created
......@@ -938,6 +940,7 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
SelectRequestedReferenceB
LoginDefaultUser # login as superuser in order to work in erp5
Pdb
DirectRequestComputerPartitionRaisesCyclicSoftwareTree
"""
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