Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
- id: mixed-line-ending
args: ["-f=lf"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.15.20"
rev: "v0.16.5"
hooks:
- id: ruff-check
args: ["--fix"]
Expand Down
12 changes: 6 additions & 6 deletions pytest-embedded-wokwi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ from pytest_embedded import Dut
def test_gpio(dut: Dut, wokwi: Wokwi):
LOGGER = logging.getLogger(__name__)

LOGGER.info("Waiting for Button test begin...")
dut.expect_exact("Butston test")
LOGGER.info('Waiting for Button test begin...')
dut.expect_exact('Butston test')

for i in range(3):
LOGGER.info(f"Setting button pressed for {i + 1} seconds")
wokwi.client.set_control("btn1", "pressed", 1)
LOGGER.info(f'Setting button pressed for {i + 1} seconds')
wokwi.client.set_control('btn1', 'pressed', 1)

dut.expect_exact(f"Button pressed {i + 1} times")
wokwi.client.set_control("btn1", "pressed", 0)
dut.expect_exact(f'Button pressed {i + 1} times')
wokwi.client.set_control('btn1', 'pressed', 0)
```