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
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ readme = "README.md"
requires-python = ">=3.11"

[project.optional-dependencies]
demo = ["dls-dodal>=1.69.0", "ophyd-async[sim]"]
demo = ["dls-dodal>=3.0.2", "ophyd-async[sim]"]

[dependency-groups]
dev = [
"ophyd_async[sim]",
"copier",
"dls-dodal>=1.69.0",
"dls-dodal>=3.0.2",
"myst-parser",
"prek",
"pydata-sphinx-theme>=0.15.4",
Expand Down
15 changes: 1 addition & 14 deletions tests/unit_tests/worker/test_task_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import threading
from collections.abc import Callable, Iterable
from concurrent.futures import Future
from pathlib import Path
from queue import Full
from typing import Any, TypeVar
from unittest.mock import ANY, MagicMock, Mock, patch
Expand All @@ -13,7 +12,6 @@
from bluesky.protocols import Movable, Readable, Status
from bluesky.utils import MsgGenerator
from dodal.common import inject
from dodal.common.types import UpdatingPathProvider
from observability_utils.tracing import (
JsonObjectSpanExporter,
asserting_span_exporter,
Expand Down Expand Up @@ -460,18 +458,7 @@ def begin_task_and_wait_until_complete(
#


@pytest.fixture
def path_provider(tmp_path: Path):
# Prevents issue with leftover state from beamline tests
with patch("dodal.plan_stubs.data_session.get_path_provider") as mock:
mock.return_value = MagicMock(spec=UpdatingPathProvider, return_value=tmp_path)
mock.return_value.data_session.return_value = "foo"
yield


def test_worker_and_data_events_produce_in_order(
worker: TaskWorker, path_provider
) -> None:
def test_worker_and_data_events_produce_in_order(worker: TaskWorker) -> None:
assert_running_count_plan_produces_ordered_worker_and_data_events(
[
WorkerEvent(
Expand Down
48 changes: 24 additions & 24 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading