Skip to content

Commit

Permalink
Fix tests to allow for TangoReadables without a trl/proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
burkeds committed Sep 12, 2024
1 parent 73f8e5d commit b5f9787
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/tango/test_base_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,6 @@ def compare_values(expected, received):
async def test_connect(tango_test_device):
values, description = await describe_class(tango_test_device)

with pytest.raises(ValueError) as excinfo:
async with DeviceCollector():
TestTangoReadable()
assert "Either 'trl' or 'device_proxy' must be provided." in str(excinfo.value)

async with DeviceCollector():
test_device = TestTangoReadable(tango_test_device)

Expand All @@ -343,9 +338,8 @@ async def test_connect_proxy(tango_test_device, proxy: Optional[bool]):
assert isinstance(test_device.proxy, tango._tango.DeviceProxy)
else:
proxy = None
with pytest.raises(ValueError) as excinfo:
test_device = TestTangoReadable(device_proxy=proxy)
assert "Either 'trl' or 'device_proxy' must be provided." in str(excinfo.value)
test_device = TestTangoReadable(device_proxy=proxy)
assert test_device


# --------------------------------------------------------------------
Expand Down

0 comments on commit b5f9787

Please sign in to comment.