We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aaf02f commit fb5f26cCopy full SHA for fb5f26c
tests/devices/test_scintillator.py
@@ -1,6 +1,6 @@
1
from collections.abc import AsyncGenerator
2
from contextlib import ExitStack
3
-from unittest.mock import MagicMock
+from unittest.mock import AsyncMock, MagicMock
4
5
import pytest
6
from ophyd_async.core import init_devices
@@ -32,6 +32,8 @@ async def scintillator_and_ap_sg(
32
) -> AsyncGenerator[tuple[Scintillator, MagicMock], None]:
33
async with init_devices(mock=True):
34
mock_ap_sg = MagicMock()
35
+ mock_ap_sg.return_value.selected_aperture.set = AsyncMock()
36
+ mock_ap_sg.return_value.selected_aperture.get_value = AsyncMock()
37
scintillator = Scintillator(
38
prefix="",
39
name="test_scin",
0 commit comments