Skip to content

Commit

Permalink
Add test to detect passing a bool
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrudd2 committed Aug 16, 2023
1 parent c6dc903 commit ee40257
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions productivity/tests/test_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,5 @@ async def test_type_checking(plc_driver):
await plc_driver.set({'GAS-101': 1})
with pytest.raises(ValueError, match='Expected TI-101 to be a int'):
await plc_driver.set({'TI-101': 1.0})
with pytest.raises(ValueError, match='Expected FI-101 to be a float'):
await plc_driver.set({'FI-101': True})

0 comments on commit ee40257

Please sign in to comment.