Skip to content

Commit

Permalink
Test final route
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondJoseph committed Aug 5, 2024
1 parent 0fdbdc6 commit 1a41a5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions tests/core/fake_device_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

from ophyd import EpicsMotor

FOO = NonCallableMock()
BAR = NonCallableMock()
BAR.__name__ = "BAR"


def fake_motor_bundle_b(
fake_motor_x: EpicsMotor,
Expand Down Expand Up @@ -33,3 +29,9 @@ def _mock_with_name(name: str) -> MagicMock:
mock = MagicMock()
mock.name = name
return mock


FOO = NonCallableMock()
BAR = NonCallableMock()
BAR.__name__ = "BAR"
BAR.__module__ = fake_motor_bundle_a.__module__
2 changes: 1 addition & 1 deletion tests/service/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,6 @@ def test_clear_message_for_invalid_function(started_runner: WorkerDispatcher):

with pytest.raises(
RpcError,
match="BAR: No such function in subprocess API",
match="BAR: Object in subprocess is not a function",
):
started_runner.run(BAR)

0 comments on commit 1a41a5f

Please sign in to comment.