From 48004c4f70a96e2a6b98dda23682db2ef595ffac Mon Sep 17 00:00:00 2001 From: Mathias Guijarro Date: Mon, 4 Nov 2024 10:06:07 +0100 Subject: [PATCH] test --- ophyd/tests/test_signal.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ophyd/tests/test_signal.py b/ophyd/tests/test_signal.py index 470d5fcce..2164264db 100644 --- a/ophyd/tests/test_signal.py +++ b/ophyd/tests/test_signal.py @@ -715,19 +715,19 @@ def test_signal_dtype_shape_info(fake_motor_ioc, cleanup): original = Signal(name="original") original_desc = original.describe()["original"] assert original_desc["dtype"] == "number" - assert original_desc["dtype_numpy"] == "" + assert "dtype_numpy" not in original_desc assert original_desc["shape"] == [] assert pytest.approx(original.get()) == 0.0 original = Signal(name="original", value=1) original_desc = original.describe()["original"] assert original_desc["dtype"] == "integer" - assert original_desc["dtype_numpy"] == "" + assert "dtype_numpy" not in original_desc assert original_desc["shape"] == [] assert original.get() == 1 original = Signal(name="original", value="On") original_desc = original.describe()["original"] assert original_desc["dtype"] == "string" - assert original_desc["dtype_numpy"] == "" + assert "dtype_numpy" not in original_desc assert original_desc["shape"] == [] assert original.get() == "On" original = Signal(name="original", dtype=numpy.uint16, shape=(2, 2)) @@ -773,7 +773,7 @@ def inverse(self, value): ) desc = string_signal_with_value.describe()["string_signal"] assert desc["dtype"] == "string" - assert desc["dtype_numpy"] == "" + assert "dtype_numpy" not in desc assert desc["shape"] == [] assert string_signal_with_value.get() == "test" @@ -784,5 +784,5 @@ def inverse(self, value): desc = string_signal.describe()["string_signal"] mocked_get.assert_called_once() assert desc["dtype"] == "string" - assert desc["dtype_numpy"] == "" + assert "dtype_numpy" not in desc assert desc["shape"] == []