Exemple #1
0
 def test_invalid_esp8266_values(self, core_esp8266, value):
     with pytest.raises(Invalid):
         pins.input_pullup_pin(value)
Exemple #2
0
    def test_unknown_platform(self, core):
        core.esp_platform = UNKNOWN_PLATFORM

        with pytest.raises(NotImplementedError):
            pins.input_pullup_pin(2)
Exemple #3
0
    def test_valid_esp32_values(self, core_esp32, value, expected):
        actual = pins.input_pullup_pin(value)

        assert actual == expected