Skip to content

Commit

Permalink
Parameterize many of the threshold tests (home-assistant#125521)
Browse files Browse the repository at this point in the history
threshold: Parameterize many of the tests

This simplfies the structure of the basic threshold tests,
making it easier to subsequently update or add missing test cases.

Except for a few removals of an inconsistenly applied assertions on
`state.attributes["sensor_value"]`, there are no changes to the existing
tests intended. All previous tests are expected to run identically.

A few extra test cases for None are added.
  • Loading branch information
agoode authored Sep 10, 2024
1 parent 379a8f2 commit a361c01
Showing 1 changed file with 277 additions and 400 deletions.
Loading

0 comments on commit a361c01

Please sign in to comment.