Skip to content

tests/test_netns: define test dependencies#1938

Merged
Bastian-Krause merged 2 commits into
labgrid-project:masterfrom
Bastian-Krause:bst/netns-test-fixes
Jul 16, 2026
Merged

tests/test_netns: define test dependencies#1938
Bastian-Krause merged 2 commits into
labgrid-project:masterfrom
Bastian-Krause:bst/netns-test-fixes

Conversation

@Bastian-Krause

Copy link
Copy Markdown
Member

Description
Instead of letting the tests fail, define what is required to run them. Skip if the requirements are not met.

Also add requests[socks] to the labgrid[dev] extra to allow tests/test_netns.py::test_socks to run.

Checklist

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Required to run tests/test_netns.py::test_socks.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
@Bastian-Krause Bastian-Krause added dependencies Pull requests that update a dependency file tests labels Jul 15, 2026
@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.0%. Comparing base (915b591) to head (f155b06).
⚠️ Report is 61 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #1938      +/-   ##
=========================================
+ Coverage    46.0%   61.0%   +15.0%     
=========================================
  Files         180     182       +2     
  Lines       14464   14881     +417     
=========================================
+ Hits         6654    9083    +2429     
+ Misses       7810    5798    -2012     
Flag Coverage Δ
3.10 61.0% <ø> (+15.0%) ⬆️
3.11 61.0% <ø> (+15.0%) ⬆️
3.12 61.0% <ø> (+15.0%) ⬆️
3.13 60.9% <ø> (+15.0%) ⬆️
3.14 60.9% <ø> (+15.0%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@Bastian-Krause
Bastian-Krause merged commit 063d1bd into labgrid-project:master Jul 16, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants