File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -92,14 +92,16 @@ def test_homedata_product_unknown_category():
9292
9393
9494@pytest .mark .parametrize (
95- ("input_value " , "expected " ),
95+ ("readable_value " , "expected_clean_type " ),
9696 [
9797 ("vac_and_mop" , YXCleanType .VAC_AND_MOP ),
9898 ("vacuum" , YXCleanType .VACUUM ),
9999 ("mop" , YXCleanType .MOP ),
100100 ],
101101)
102- def test_yx_clean_type_from_value_compat_aliases (input_value : str , expected : YXCleanType ) -> None :
103- """Test YXCleanType accepts readable values."""
104- assert YXCleanType .from_value (input_value ) is expected
105- assert expected .value == input_value
102+ def test_yx_clean_type_from_value_readable_values (
103+ readable_value : str , expected_clean_type : YXCleanType
104+ ) -> None :
105+ """Test YXCleanType accepts canonical readable values."""
106+ assert YXCleanType .from_value (readable_value ) is expected_clean_type
107+ assert expected_clean_type .value == readable_value
You can’t perform that action at this time.
0 commit comments