Skip to content

Commit 686ab2b

Browse files
committed
test: Unconditionally retrieve new_feature_set and assert it exists
1 parent 8b6d9cd commit 686ab2b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/devices/traits/v1/fixtures.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ async def discover_features_fixture(
125125
"""Fixture to handle device feature discovery."""
126126
assert device.v1_properties
127127

128-
new_feature_info_str = device_info.new_feature_set or str(mock_data.APP_GET_INIT_STATUS["new_feature_info_str"])
128+
new_feature_info_str = device_info.new_feature_set
129+
assert new_feature_info_str is not None, f"Device {device_info.name} is missing new_feature_set"
129130
new_feature_info = int(new_feature_info_str, 16)
130131

131132
mock_rpc_channel.send_command.side_effect = [

0 commit comments

Comments
 (0)