Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Guijarro committed Nov 4, 2024
1 parent 36c5e22 commit 48004c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ophyd/tests/test_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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"

Expand All @@ -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"] == []

0 comments on commit 48004c4

Please sign in to comment.