Skip to content

TST move the test-only signal-parameter helpers out of models/util.py - #1445

Merged
bruAristimunha merged 1 commit into
braindecode:masterfrom
bruAristimunha:cleanup/t8-fixtures
Oct 17, 2026
Merged

bruAristimunha merged 1 commit into
braindecode:masterfrom
bruAristimunha:cleanup/t8-fixtures

Conversation

@bruAristimunha

Copy link
Copy Markdown
Collaborator

Part of #1442. Test-only refactor, no library behaviour change.

_get_signal_params, _get_possible_signal_params, default_signal_params and non_classification_models (149 lines) were defined in braindecode/models/util.py but only the tests import them. They now live in test/unit_tests/models/_fixtures.py; nine test modules import them from there. The channel fixtures that feed the public models_mandatory_parameters stay in the library.

Same 4,824 tests collected in test/unit_tests/models before and after; test_util.py + test_config.py pass (260).

Copilot AI balanced review requested due to automatic review settings October 17, 2026 15:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codecov

codecov Bot commented Oct 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.20%. Comparing base (5ddf2de) to head (334a10f).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1445      +/-   ##
==========================================
- Coverage   90.22%   90.20%   -0.03%     
==========================================
  Files         167      167              
  Lines       21948    21898      -50     
==========================================
- Hits        19802    19752      -50     
  Misses       2146     2146              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bruAristimunha
bruAristimunha merged commit cc62813 into braindecode:master Oct 17, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants