Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rose Yemelyanova committed Sep 14, 2023
1 parent 1c5bd44 commit 141aae8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/core/_device/test_device_collector.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
from ophyd_async.core import Device, DeviceCollector
import pytest

from ophyd_async.core import Device, DeviceCollector


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")
_ = Dummy("somename")

0 comments on commit 141aae8

Please sign in to comment.