Skip to content

STY: Prefer avoiding private import statements in tests - #471

Open
jhlegarreta wants to merge 1 commit into
nipreps:mainfrom
jhlegarreta:sty/prefer-avoiding-private-imports
Open

STY: Prefer avoiding private import statements in tests#471
jhlegarreta wants to merge 1 commit into
nipreps:mainfrom
jhlegarreta:sty/prefer-avoiding-private-imports

Conversation

@jhlegarreta

Copy link
Copy Markdown
Contributor

Prefer avoiding private import statements in tests.

Improves consistency throughout the test by resolving names wherever they are needed, since only the model package is imported.

@jhlegarreta
jhlegarreta requested a review from oesteban July 23, 2026 19:03
@jhlegarreta

Copy link
Copy Markdown
Contributor Author

Not sure if there was a reason for private import statements. We can also import all classes at the top if we prefer that over the need to fully resolve the names every time.

@jhlegarreta
jhlegarreta force-pushed the sty/prefer-avoiding-private-imports branch 2 times, most recently from 98650cf to 5a9dada Compare July 23, 2026 19:17
@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.30%. Comparing base (5238cce) to head (fd5565b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #471   +/-   ##
=======================================
  Coverage   90.30%   90.30%           
=======================================
  Files          38       38           
  Lines        2207     2207           
  Branches      251      251           
=======================================
  Hits         1993     1993           
  Misses        187      187           
  Partials       27       27           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Prefer avoiding private import statements in tests.

Improves consistency throughout the test by resolving names wherever
they are needed, since only the `model` package is imported.
@jhlegarreta
jhlegarreta force-pushed the sty/prefer-avoiding-private-imports branch from 5a9dada to fd5565b Compare July 23, 2026 19:45
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.

1 participant