Skip to content

Commit

Permalink
Add tmp_path DirectoryProvider fixture for Detector tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondJoseph committed Apr 11, 2024
1 parent b1ea79f commit 94ff518
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import pytest
from bluesky.run_engine import RunEngine, TransitionError

from ophyd_async.core import StaticDirectoryProvider

PANDA_RECORD = str(Path(__file__).parent / "panda" / "db" / "panda.db")
INCOMPLETE_BLOCK_RECORD = str(
Path(__file__).parent / "panda" / "db" / "incomplete_block_panda.db"
Expand Down Expand Up @@ -89,3 +91,7 @@ async def inner_coroutine():
raise ValueError()

return inner_coroutine

@pytest.fixture
def static_directory_provider(tmp_path: Path):
return StaticDirectoryProvider(directory_path=tmp_path)

0 comments on commit 94ff518

Please sign in to comment.