Skip to content

Commit 4183a7d

Browse files
committed
Attempt to fix pyright failure
1 parent d7cecd3 commit 4183a7d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_genie_dae.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def test_WHEN_clearing_all_vetoes_THEN_fifo_is_unaffected(self):
431431

432432
@patch("genie_python.genie_cachannel_wrapper.CaChannelWrapper.add_monitor")
433433
def test_GIVEN_simulation_mode_AND_test_clock_WHEN_begin_run_THEN_user_is_warned(
434-
self, mock_monitor
434+
self, mock_monitor: MagicMock
435435
):
436436
mock_monitor.return_value = None
437437
self.dae.api.get_pv_value = MagicMock(return_value="SETUP")
@@ -449,7 +449,7 @@ def test_GIVEN_simulation_mode_AND_test_clock_WHEN_begin_run_THEN_user_is_warned
449449

450450
@patch("genie_python.genie_cachannel_wrapper.CaChannelWrapper.add_monitor")
451451
def test_GIVEN_in_test_clock_AND_not_in_simulation_mode_WHEN_begin_run_THEN_user_is_warned(
452-
self, mock_monitor
452+
self, mock_monitor: MagicMock
453453
):
454454
mock_monitor.return_value = None
455455
self.dae.api.get_pv_value = MagicMock(return_value="SETUP")
@@ -467,7 +467,7 @@ def test_GIVEN_in_test_clock_AND_not_in_simulation_mode_WHEN_begin_run_THEN_user
467467

468468
@patch("genie_python.genie_cachannel_wrapper.CaChannelWrapper.add_monitor")
469469
def test_GIVEN_simulation_mode_AND_not_test_clock_WHEN_begin_run_THEN_user_is_warned(
470-
self, mock_monitor
470+
self, mock_monitor: MagicMock
471471
):
472472
mock_monitor.return_value = None
473473
self.dae.api.get_pv_value = MagicMock(return_value="SETUP")
@@ -485,7 +485,7 @@ def test_GIVEN_simulation_mode_AND_not_test_clock_WHEN_begin_run_THEN_user_is_wa
485485

486486
@patch("genie_python.genie_cachannel_wrapper.CaChannelWrapper.add_monitor")
487487
def test_GIVEN_not_in_test_clock_not_in_simulation_mode_WHEN_begin_run_THEN_user_is_warned(
488-
self, mock_monitor
488+
self, mock_monitor:
489489
):
490490
mock_monitor.return_value = None
491491
self.dae.api.get_pv_value = MagicMock(return_value="SETUP")
@@ -741,7 +741,7 @@ def set_run_state(self, new_runstate):
741741

742742
@patch("genie_python.genie_cachannel_wrapper.CaChannelWrapper.add_monitor")
743743
def test_GIVEN_in_setup_state_WHEN_begin_run_called_THEN_no_exception_thrown(
744-
self, mock_monitor
744+
self, mock_monitor: MagicMock
745745
):
746746
mock_monitor.return_value = None
747747
self.set_run_state("SETUP")

0 commit comments

Comments
 (0)