Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 0 additions & 62 deletions src/dodal/plan_stubs/data_session.py

This file was deleted.

2 changes: 0 additions & 2 deletions src/dodal/plans/spec_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
from scanspec.specs import Spec

from dodal.common import MsgGenerator
from dodal.plan_stubs.data_session import attach_data_session_metadata_decorator


@attach_data_session_metadata_decorator()
@validate_call(config={"arbitrary_types_allowed": True})
def spec_scan(
detectors: Annotated[
Expand Down
2 changes: 0 additions & 2 deletions src/dodal/plans/wrapped.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from pydantic import Field, NonNegativeFloat, validate_call

from dodal.common import MsgGenerator
from dodal.plan_stubs.data_session import attach_data_session_metadata_decorator

"""This module wraps plan(s) from bluesky.plans until required handling for them is
moved into bluesky or better handled in downstream services.
Expand All @@ -26,7 +25,6 @@
"""


@attach_data_session_metadata_decorator()
@validate_call(config={"arbitrary_types_allowed": True})
def count(
detectors: Annotated[
Expand Down
43 changes: 0 additions & 43 deletions tests/plan_stubs/test_data_session.py

This file was deleted.

19 changes: 3 additions & 16 deletions tests/plans/conftest.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import asyncio
from pathlib import Path, PurePath
from unittest.mock import patch

import pytest
from daq_config_server.client import ConfigClient
from ophyd_async.core import (
PathProvider,
StandardDetector,
init_devices,
)
from ophyd_async.core import PathProvider, StandardDetector, init_devices
from ophyd_async.sim import PatternGenerator, SimBlobDetector, SimMotor

from dodal.devices.beamlines.i03.dcm import DCM
Expand Down Expand Up @@ -40,7 +35,7 @@ async def mock_undulator_and_dcm(


@pytest.fixture
def det(tmp_path: Path, path_provider) -> StandardDetector:
def det(tmp_path: Path, static_path_provider: PathProvider) -> StandardDetector:
class DevNullPatternGenerator(PatternGenerator):
def __init__(self, sleep=asyncio.sleep):
super().__init__(sleep)
Expand All @@ -63,7 +58,7 @@ def close_file(self):

pattern_generator = DevNullPatternGenerator()
with init_devices(mock=True):
det = SimBlobDetector(path_provider, pattern_generator)
det = SimBlobDetector(static_path_provider, pattern_generator)
return det


Expand All @@ -86,11 +81,3 @@ def z_axis() -> SimMotor:
with init_devices(mock=True):
z_axis = SimMotor()
return z_axis


@pytest.fixture
def path_provider(static_path_provider: PathProvider):
# Prevents issue with leftover state from beamline tests
with patch("dodal.plan_stubs.data_session.get_path_provider") as mock:
mock.return_value = static_path_provider
yield static_path_provider
Empty file removed tests/preprocessors/__init__.py
Empty file.
Loading
Loading