Skip to content

Conversation

JakubAndrysek
Copy link

This pull request migrates the Wokwi integration in pytest-embedded-wokwi from a CLI-based approach (wokwi-cli) to a new synchronous Python client (wokwi-python-client). It removes all dependencies and code related to the CLI, introduces a new Wokwi class for simulation control, and updates documentation and dependencies accordingly. The changes also update all relevant imports and interfaces in the codebase to use the new Wokwi class, and improve the documentation with usage examples for the new API.

@@ -34,6 +35,8 @@ requires-python = ">=3.7"
dependencies = [
"pytest-embedded~=1.17.0a2",
"toml~=0.10.2",
# Temporary workaround for Wokwi client - will be redirected to the official repo
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am still waiting for wokwi-client PR release - wokwi/wokwi-python-client#2

@JakubAndrysek
Copy link
Author

But the rest code seems to be working

@github-actions github-actions bot changed the title refactor: replace WokwiCLI with Wokwi class refactor: replace WokwiCLI with Wokwi class (RDT-1428) Aug 13, 2025
@hfudev
Copy link
Member

hfudev commented Aug 14, 2025

this looks like a huge improvement! could close #233 as well

@JakubAndrysek
Copy link
Author

I have looked at the tests, and they have not worked successfully for a long time. Can I do something to fix them, or do they need bigger changes?

@hfudev
Copy link
Member

hfudev commented Aug 15, 2025

@JakubAndrysek you don't need to worry about the test cases. the wokwi test cases are not running anyway.

seems like the runner is failing... I'll take care of those.

# Temporary workaround for Wokwi client - will be redirected to the official repo
"wokwi-client @ git+https://github.com/JakubAndrysek/wokwi-python-client.git@add-sync-client",
# Temporary workaround - will be fixed for stable release
"wokwi-client",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @JakubAndrysek I saw the https://github.com/wokwi/wokwi-python-client/releases/tag/v0.1.0 has been released. could you update the requirements to

wokwi-client>=0.1.0,<1 here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I will do it, but I am still waiting to release version 1.0.1 with some other improvements which I need in pytest.
But the rest of the code will be the same.

@JakubAndrysek
Copy link
Author

JakubAndrysek commented Aug 28, 2025

Hi, the PR is ready. Please review it, thanks!
(today - added just logging comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants