Skip to content

Commit

Permalink
fix: test_full_invalid_featureset error message parsing
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Kaechele <felix@kaechele.ca>
  • Loading branch information
kaechele committed Feb 21, 2023
1 parent 4367a89 commit 6e1cd6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from bonaparte import Fireplace, FireplaceFeatures

fp = Fireplace(BLEDevice("aa:bb:cc:dd:ee:ff", "Fireplace", delegate=""), "0000")
fireplace_features = FireplaceFeatures()

full_valid_set = {"aux", "blower", "led_lights", "night_light", "split_flow"}
partial_valid_set = {"blower", "night_light"}
Expand Down Expand Up @@ -43,7 +42,8 @@ def test_partial_valid_featureset() -> None:

def test_full_invalid_featureset() -> None:
with pytest.raises(
ValueError, match="Invalid feature values found in input set: {'foo', 'bar'}"
ValueError,
match=r"Invalid feature values found in input set: {'(foo|bar)', '(foo|bar)'}",
):
fp.set_features(full_invalid_set)

Expand Down

0 comments on commit 6e1cd6f

Please sign in to comment.