def test_invalid_esp8266_values(self, core_esp8266, value): with pytest.raises(Invalid): pins.input_pullup_pin(value)
def test_unknown_platform(self, core): core.esp_platform = UNKNOWN_PLATFORM with pytest.raises(NotImplementedError): pins.input_pullup_pin(2)
def test_valid_esp32_values(self, core_esp32, value, expected): actual = pins.input_pullup_pin(value) assert actual == expected