Skip to content

Commit

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

Contributes to: NGC-1062.
  • Loading branch information
amishatishpatel committed Aug 30, 2024
1 parent e40a908 commit af58259
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ class OtherEnum(enum.Enum):
[
(bool, True),
(int, 1234),
(float, 1234),
(float, 1234.5),
(float, Fraction(8190 / 64)),
(float, Fraction(8190, 64)),
(str, "one-two-three-four"),
(bytes, b"one-two-three-four"),
(Address, Address(IPv4Address("1.2.3.4"))),
Expand All @@ -112,7 +113,7 @@ class OtherEnum(enum.Enum):
)
@pytest.mark.parametrize("initialise_sensor", [True, False])
def test_sensor_value_setter_success(
sensor_type: Type[_T],
sensor_type: Type,
compatible_value: Any,
initialise_sensor: bool,
) -> None:
Expand Down

0 comments on commit af58259

Please sign in to comment.