-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fc475f
commit 7395e95
Showing
3 changed files
with
56 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from pathlib import Path | ||
from unittest.mock import AsyncMock, MagicMock | ||
|
||
import pytest | ||
from ophyd_async.core import PathInfo | ||
|
||
|
||
@pytest.fixture | ||
def updating_path_provider(tmp_path: Path): | ||
updating_mock_path_provider = MagicMock() | ||
updating_mock_path_provider.data_session = AsyncMock(return_value="bar") | ||
updating_mock_path_provider.update = AsyncMock() | ||
updating_mock_path_provider.return_value = PathInfo(tmp_path, "foo", 0) | ||
return updating_mock_path_provider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters