Commit bd2ec32b authored by Łukasz Nowak's avatar Łukasz Nowak

Fix tests.

Graphs were not cyclic.
parent 4c2acbc2
...@@ -8426,10 +8426,11 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -8426,10 +8426,11 @@ class TestVifibSlapWebService(testVifibMixin):
def test_si_tree_cyclic_disconnected(self): def test_si_tree_cyclic_disconnected(self):
"""Two trees, where one is cyclic are disconnected """Two trees, where one is cyclic are disconnected
B --> A <-\ B --> A
\-> H --/ \-> H
C --> D --> G <-\ C --> D --> G
\-> E --> F --/ ^ \-> E --> F \
\------------/
""" """
self._test_si_tree() self._test_si_tree()
graph = { graph = {
...@@ -8438,9 +8439,9 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -8438,9 +8439,9 @@ class TestVifibSlapWebService(testVifibMixin):
'C': ['D', 'E'], 'C': ['D', 'E'],
'D': ['G'], 'D': ['G'],
'E': ['F'], 'E': ['F'],
'F': ['G'], 'F': ['C'],
'G': [], 'G': [],
'H': ['A'], 'H': [],
} }
root = 'B' root = 'B'
from erp5.document.SoftwareInstance import DisconnectedSoftwareTree from erp5.document.SoftwareInstance import DisconnectedSoftwareTree
...@@ -8548,10 +8549,11 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -8548,10 +8549,11 @@ class TestVifibSlapWebService(testVifibMixin):
def test_si_tree_cyclic_disconnected_cyclic(self): def test_si_tree_cyclic_disconnected_cyclic(self):
"""Two trees, where one is cyclic are disconnected """Two trees, where one is cyclic are disconnected
B --> A <-\ B --> A
\-> H --/ \-> H
C --> D --> G <-\ C --> D --> G
\-> E --> F --/ ^ \-> E --> F \
\------------/
""" """
self._test_si_tree() self._test_si_tree()
graph = { graph = {
...@@ -8560,7 +8562,7 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -8560,7 +8562,7 @@ class TestVifibSlapWebService(testVifibMixin):
'C': ['D', 'E'], 'C': ['D', 'E'],
'D': ['G'], 'D': ['G'],
'E': ['F'], 'E': ['F'],
'F': ['G'], 'F': ['C'],
'G': [], 'G': [],
'H': ['A'], 'H': ['A'],
} }
......
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