fix graph and white background added
This commit is contained in:
@@ -129,8 +129,9 @@ class ReviewGuiRegressions(unittest.TestCase):
|
||||
pipeline, supervisor = pipeline_fixture(self)
|
||||
pipeline.should_run = True
|
||||
supervisor.pids.return_value = dict.fromkeys(("acquisition", "data_preprocessor", "data_processor"), 1)
|
||||
with mock.patch.object(pipeline, "read_results", return_value=ResultCollection(1, 2)), \
|
||||
mock.patch.object(pipeline.plots, "draw", side_effect=ValueError("bad display")), \
|
||||
results = iter([ResultCollection(1, 2), None, ResultCollection(2, 3)])
|
||||
pipeline._result_reader = mock.Mock(pop_result_collection=lambda: next(results, None))
|
||||
with mock.patch.object(pipeline.plots, "draw", side_effect=ValueError("bad display")), \
|
||||
mock.patch.object(pipeline, "stop_all") as stop, \
|
||||
self.assertLogs("python_app.gui.controllers.pipeline_controller", "ERROR") as logs:
|
||||
pipeline.poll()
|
||||
|
||||
Reference in New Issue
Block a user