Skip to content

Commit

Permalink
Modify unit tests for new show-pipeline outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
leeskelvin committed Jun 20, 2024
1 parent 6bf4074 commit 66dac1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_cmdLineFwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,11 @@ def testShowPipeline(self):
self.assertEqual(
"\n".join(
[
"○ add_dataset_in",
"○ add_dataset_in: {detector} NumpyArray",
"│",
"■ task",
"■ task: {detector}",
"│",
"◍ add_dataset_out, add2_dataset_out",
"◍ add_dataset_out, add2_dataset_out: {detector} NumpyArray",
]
),
output,
Expand All @@ -493,7 +493,7 @@ def testShowPipeline(self):
show.show_pipeline_info(pipeline, None)
stream.seek(0)
output = stream.read().strip()
self.assertEqual("■ task", output)
self.assertEqual("■ task: {detector}", output)

stream = StringIO()
show = ShowInfo(["config=task::addEnd"], stream=stream) # Match but warns
Expand Down

0 comments on commit 66dac1b

Please sign in to comment.