Skip to content

Fix/small fixes#407

Merged
hfudev merged 2 commits intomainfrom
fix/small-fixes
Mar 2, 2026
Merged

Fix/small fixes#407
hfudev merged 2 commits intomainfrom
fix/small-fixes

Conversation

@hfudev
Copy link
Copy Markdown
Member

@hfudev hfudev commented Mar 2, 2026

No description provided.

@hfudev hfudev requested a review from Copilot March 2, 2026 07:49
@hfudev hfudev self-assigned this Mar 2, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Tightens up Wokwi CI/test behavior by improving token detection in tests and passing additional firmware metadata when starting Wokwi simulations.

Changes:

  • Update test skip condition to treat empty WOKWI_CLI_TOKEN as “not set”.
  • Include flash_size when starting simulations for IDF firmware uploads (flasher_args.json path).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
pytest-embedded-wokwi/tests/test_wokwi.py Adjusts WOKWI token presence check used to skip integration tests.
pytest-embedded-wokwi/pytest_embedded_wokwi/wokwi.py Passes firmware/ELF parameters via a kwargs dict and adds flash_size for IDF firmware simulations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


wokwi_token_required = pytest.mark.skipif(
os.getenv('WOKWI_CLI_TOKEN') is None,
not os.getenv('WOKWI_CLI_TOKEN', None),
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

os.getenv('WOKWI_CLI_TOKEN', None) passes None as the default, which is already the default for os.getenv. Consider simplifying to os.getenv('WOKWI_CLI_TOKEN') to reduce noise in this skip condition.

Suggested change
not os.getenv('WOKWI_CLI_TOKEN', None),
not os.getenv('WOKWI_CLI_TOKEN'),

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 2, 2026

Title Coverage Tests Skipped Failures Errors Time
Qemu Coverage 7 0 💤 0 ❌ 0 🔥 25.119s ⏱️
3.14 X64 Coverage 103 14 💤 0 ❌ 0 🔥 13m 56s ⏱️
3.10 ARM64 Coverage 103 16 💤 0 ❌ 0 🔥 11m 0s ⏱️

@hfudev hfudev merged commit da8c239 into main Mar 2, 2026
10 checks passed
@hfudev hfudev deleted the fix/small-fixes branch March 2, 2026 08:06
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