Skip to content

Commit 0ba2672

Browse files
committed
test(YXCleanType): simplify test for readable values in from_value method
1 parent 22db4cb commit 0ba2672

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/data/test_code_mappings.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ def test_homedata_product_unknown_category():
9999
("mop", YXCleanType.MOP),
100100
],
101101
)
102-
def test_yx_clean_type_from_value_readable_values(
103-
readable_value: str, expected_clean_type: YXCleanType
104-
) -> None:
102+
def test_yx_clean_type_from_value_readable_values(readable_value: str, expected_clean_type: YXCleanType) -> None:
105103
"""Test YXCleanType accepts canonical readable values."""
106104
assert YXCleanType.from_value(readable_value) is expected_clean_type
107105
assert expected_clean_type.value == readable_value

0 commit comments

Comments
 (0)