From b5f97871cb1d312b4491977ee78177525231f396 Mon Sep 17 00:00:00 2001 From: Devin Burke Date: Thu, 12 Sep 2024 14:39:16 +0200 Subject: [PATCH] Fix tests to allow for TangoReadables without a trl/proxy. --- tests/tango/test_base_device.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/tango/test_base_device.py b/tests/tango/test_base_device.py index 3071d60282..642e5e8248 100644 --- a/tests/tango/test_base_device.py +++ b/tests/tango/test_base_device.py @@ -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) @@ -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 # --------------------------------------------------------------------