-
Notifications
You must be signed in to change notification settings - Fork 24
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
Rose Yemelyanova
committed
Sep 14, 2023
1 parent
3ad5eda
commit 1c5bd44
Showing
2 changed files
with
17 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from ophyd_async.core import Device, DeviceCollector | ||
import pytest | ||
|
||
class Dummy(Device): | ||
def connect(self, sim: bool = False): | ||
raise AttributeError() | ||
|
||
def test_device_collector_propagates_error(RE): | ||
with pytest.raises(AttributeError): | ||
with DeviceCollector(): | ||
dummy = Dummy("somename") |
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