def test_invalid_values(self, core_esp32, value): with pytest.raises(Invalid, match="This variable only supports"): pins._translate_pin(value)
def test_valid_values(self, core_esp32, value, expected): actual = pins._translate_pin(value) assert actual == expected