Skip to content

Commit

Permalink
Update for latest ophyd-async version (#629)
Browse files Browse the repository at this point in the history
* Update for latest ophyd-async version

* Pin dodal
  • Loading branch information
DominicOram authored Nov 12, 2024
1 parent f56f55b commit 84d236d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 28 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dependencies = [
"ophyd == 1.9.0",
"ophyd-async >= 0.3a5",
"bluesky >= 1.13.0a4",
"dls-dodal @ git+https://github.com/DiamondLightSource/dodal.git@main",
"dls-dodal @ git+https://github.com/DiamondLightSource/dodal.git@19ce6d9cec962329b906f36b583e404a9283efe3",
]


Expand Down Expand Up @@ -108,7 +108,7 @@ version_file = "src/mx_bluesky/_version.py"

[tool.pyright]
typeCheckingMode = "standard"
reportMissingImports = false # Ignore missing stubs in imported modules
reportMissingImports = false # Ignore missing stubs in imported modules

[tool.pytest.ini_options]
# Run pytest with all our checkers, and don't spam us with massive tracebacks on error
Expand Down
18 changes: 0 additions & 18 deletions src/mx_bluesky/common/test_utils.py

This file was deleted.

2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
callback_on_mock_put,
set_mock_value,
)
from ophyd_async.epics.core import epics_signal_rw
from ophyd_async.epics.motor import Motor
from ophyd_async.epics.signal import epics_signal_rw
from ophyd_async.fastcs.panda import DatasetTable, PandaHdf5DatasetType
from scanspec.core import Path as ScanPath
from scanspec.specs import Line
Expand Down
9 changes: 2 additions & 7 deletions tests/unit_tests/beamlines/i04/test_thawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from ophyd_async.epics.motor import Motor

from mx_bluesky.beamlines.i04.thawing_plan import thaw, thaw_and_stream_to_redis
from mx_bluesky.common.test_utils import rebuild_oa_device_as_mocked_if_necessary

DISPLAY_CONFIGURATION = "tests/test_data/test_display.configuration"
ZOOM_LEVELS_XML = "tests/test_data/test_jCameraManZoomLevels.xml"
Expand Down Expand Up @@ -73,9 +72,7 @@ async def smargon(RE: RunEngine) -> AsyncGenerator[Smargon, None]:

@pytest.fixture
def thawer(RE: RunEngine) -> Thawer:
return rebuild_oa_device_as_mocked_if_necessary(
i04.thawer, fake_with_ophyd_sim=True, wait_for_connection=True
)
return i04.thawer(fake_with_ophyd_sim=True, wait_for_connection=True)


@pytest.fixture
Expand All @@ -97,9 +94,7 @@ async def completed_status():

@pytest.fixture
def robot(RE: RunEngine) -> BartRobot:
return rebuild_oa_device_as_mocked_if_necessary(
i04.robot, wait_for_connection=True, fake_with_ophyd_sim=True
)
return i04.robot(wait_for_connection=True, fake_with_ophyd_sim=True)


def _do_thaw_and_confirm_cleanup(
Expand Down

0 comments on commit 84d236d

Please sign in to comment.