mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
refactor: changed from bec client to dispatcher
This commit is contained in:
@ -143,7 +143,9 @@ def test_line_plot_mouse_moved(qtbot):
|
||||
f"Y_data: {y_data:>{string_cap}}",
|
||||
]
|
||||
)
|
||||
with mock.patch.object(plot, "plot") as mock_plot:
|
||||
with mock.patch.object(
|
||||
plot, "plot"
|
||||
) as mock_plot: # TODO change test to simulate QTable instead of QLabel
|
||||
mock_plot.sceneBoundingRect.contains.return_value = True
|
||||
mock_plot.vb.mapSceneToView((20, 10)).x.return_value = 2.8
|
||||
plot.mouse_moved((20, 10))
|
||||
|
Reference in New Issue
Block a user