summaryrefslogtreecommitdiff
path: root/taskflow/tests/unit/patterns/test_linear_flow.py
diff options
context:
space:
mode:
authorMichael Johnson <johnsomor@gmail.com>2022-06-09 18:02:21 +0000
committerTom Weininger <tweining@redhat.com>2022-06-10 11:45:32 +0200
commit2521e3ee00d91d4002b751ecea06906fdf1c9b0e (patch)
tree3642cf67e18058564d93c3c01cc02d4d65dcf9ee /taskflow/tests/unit/patterns/test_linear_flow.py
parenta26e2d8898a2203a72adf28c8751e41450b1c020 (diff)
downloadtaskflow-2521e3ee00d91d4002b751ecea06906fdf1c9b0e.tar.gz
Quote string representations
networkx 2.8.3 will raise errors if certain characters, such as a colon, in the node names and the string is not quoted. This patch double quotes flow, node, and task string representations to make sure there are not issues with these characters occuring in the names. Story: 2010083 Change-Id: Ib0941cddf14dde5d6b9f97fe0224d6e6f3975226
Diffstat (limited to 'taskflow/tests/unit/patterns/test_linear_flow.py')
-rw-r--r--taskflow/tests/unit/patterns/test_linear_flow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/taskflow/tests/unit/patterns/test_linear_flow.py b/taskflow/tests/unit/patterns/test_linear_flow.py
index d96835e..682467b 100644
--- a/taskflow/tests/unit/patterns/test_linear_flow.py
+++ b/taskflow/tests/unit/patterns/test_linear_flow.py
@@ -28,7 +28,7 @@ class LinearFlowTest(test.TestCase):
def test_linear_flow_stringy(self):
f = lf.Flow('test')
- expected = 'linear_flow.Flow: test(len=0)'
+ expected = '"linear_flow.Flow: test(len=0)"'
self.assertEqual(expected, str(f))
task1 = _task(name='task1')
@@ -36,7 +36,7 @@ class LinearFlowTest(test.TestCase):
task3 = _task(name='task3')
f = lf.Flow('test')
f.add(task1, task2, task3)
- expected = 'linear_flow.Flow: test(len=3)'
+ expected = '"linear_flow.Flow: test(len=3)"'
self.assertEqual(expected, str(f))
def test_linear_flow_starts_as_empty(self):