Skip to content

Commit

Permalink
Tweak sensor value setter unit test params
Browse files Browse the repository at this point in the history
As per @bmerry's suggestion on #98.

Contributes to: NGC-1062.
  • Loading branch information
amishatishpatel committed Aug 30, 2024
1 parent a4d47d8 commit e40a908
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ class OtherEnum(enum.Enum):
"sensor_type,compatible_value",
[
(bool, True),
(int, 1_2_3_4),
(float, Fraction(1234678)),
(float, Fraction(12345678)),
(int, 1234),
(float, 1234.5),
(float, Fraction(8190 / 64)),
(str, "one-two-three-four"),
(bytes, b"one-two-three-four"),
(Address, Address(IPv4Address("1.2.3.4"))),
Expand Down Expand Up @@ -138,7 +138,7 @@ def test_sensor_value_setter_success(
(bool, "True"),
(int, "1234"),
(int, 1234.5),
(float, "1234.5"),
(float, 1 + 2j),
(str, {"a": 1}),
(str, b"bytes"),
(bytes, "str"),
Expand Down

0 comments on commit e40a908

Please sign in to comment.