Skip to content

tests/test_agent.py: parametrize test_all_modules#1819

Merged
Emantor merged 1 commit intolabgrid-project:masterfrom
dlech:param-agent-test
Feb 14, 2026
Merged

tests/test_agent.py: parametrize test_all_modules#1819
Emantor merged 1 commit intolabgrid-project:masterfrom
dlech:param-agent-test

Conversation

@dlech
Copy link
Copy Markdown
Contributor

@dlech dlech commented Feb 13, 2026

Description

Use pytest.mark.parametrize to avoid code duplication in test_all_modules. This will also allow us to see if only one module is failing or if all modules are failing which could be helpful for debugging.

(I was poking around with the agent code and saw there was some room for improvement here.)

Use pytest.mark.parametrize to avoid code duplication in test_all_modules.
This will also allow us to see if only one module is failing or if all
modules are failing which could be helpful for debugging.

Signed-off-by: David Lechner <dlechner@baylibre.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.2%. Comparing base (93fa254) to head (a699f1d).
⚠️ Report is 2 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1819   +/-   ##
======================================
  Coverage    45.2%   45.2%           
======================================
  Files         174     174           
  Lines       13752   13752           
======================================
  Hits         6224    6224           
  Misses       7528    7528           
Flag Coverage Δ
3.10 45.2% <ø> (ø)
3.11 45.2% <ø> (ø)
3.12 45.2% <ø> (ø)
3.13 45.2% <ø> (ø)
3.14 45.2% <ø> (ø)
3.9 45.3% <ø> (ø)

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

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

@Emantor Emantor merged commit b94e172 into labgrid-project:master Feb 14, 2026
12 checks passed
@dlech dlech deleted the param-agent-test branch February 14, 2026 22:05
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