Skip to content

Commit e6f0697

Browse files
committed
fix(wokwi): update method calls for serial monitoring and writing
1 parent 7409898 commit e6f0697

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pytest-embedded-wokwi/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies = [
3636
"pytest-embedded~=1.17.0a2",
3737
"toml~=0.10.2",
3838
# Temporary workaround for Wokwi client - will be redirected to the official repo
39-
"wokwi-client @ git+https://github.com/JakubAndrysek/wokwi-python-client.git@sync-wokwi-client",
39+
"wokwi-client @ git+https://github.com/JakubAndrysek/wokwi-python-client.git@add-sync-client",
4040
]
4141

4242
[project.optional-dependencies]

pytest-embedded-wokwi/pytest_embedded_wokwi/wokwi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ def serial_callback(data: bytes):
124124
logging.debug(f'Error putting data in message queue: {e}')
125125

126126
# Start monitoring in background
127-
self.client.monitor_serial(serial_callback)
127+
self.client.serial_monitor(serial_callback)
128128

129129
def write(self, s: t.Union[str, bytes]) -> None:
130130
"""Write data to the Wokwi serial interface."""
131131
try:
132132
data = s if isinstance(s, bytes) else s.encode('utf-8')
133-
self.client.write_serial(data)
133+
self.client.serial_write(data)
134134
logging.debug(f'{self.SOURCE} ->: {s}')
135135
except Exception as e:
136136
logging.error(f'Failed to write to Wokwi serial: {e}')

0 commit comments

Comments
 (0)