mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2026-03-09 09:47:04 +01:00
32 lines
783 B
Python
32 lines
783 B
Python
import os
|
|
import time
|
|
|
|
import pytest
|
|
from flippigator.case import BaseCase
|
|
from termcolor import colored
|
|
|
|
os.system("color")
|
|
|
|
|
|
@pytest.mark.smoke
|
|
@pytest.mark.gpio
|
|
class TestGpio(BaseCase):
|
|
def test_gpio_menu(self, nav):
|
|
nav.gpio.go_into()
|
|
menu = nav.get_menu_list()
|
|
menu_ref = [
|
|
"USB-UART Bridge",
|
|
"GPIO Manual Control",
|
|
"5V on GPIO",
|
|
]
|
|
assert menu == menu_ref, "GPIO menu list is wrong"
|
|
nav.go_to_main_screen()
|
|
|
|
def test_manual_control(self, nav):
|
|
nav.gpio.go_into()
|
|
nav.go_to("GPIO Manual Control")
|
|
nav.press_ok()
|
|
state = nav.get_current_state()
|
|
assert "GPIO Output Mode Test" in state, "GPIO Manual Control failed"
|
|
nav.go_to_main_screen()
|