Skip to content

One more try here.#161

Merged
arokem merged 1 commit into
tractometry:mainfrom
arokem:decorate_test
Jan 21, 2026
Merged

One more try here.#161
arokem merged 1 commit into
tractometry:mainfrom
arokem:decorate_test

Conversation

@arokem

@arokem arokem commented Jan 21, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings January 21, 2026 21:03
@arokem
arokem merged commit 7dce6f8 into tractometry:main Jan 21, 2026

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.

Pull request overview

This pull request corrects a pytest decorator from @pytest.mark.skip to @pytest.mark.skipif in the test_viz.py file. The original code used the wrong pytest marker for conditionally skipping tests.

Changes:

  • Fixed pytest decorator from skip to skipif to properly handle conditional test skipping

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

Comment thread AFQ/tests/test_viz.py


@pytest.mark.skip(not Viz, "Skipping viz tests, unable to import viz utils")
@pytest.mark.skipif(not Viz, "Skipping viz tests, unable to import viz utils")

Copilot AI Jan 21, 2026

Copy link

Choose a reason for hiding this comment

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

The skipif marker is missing the 'reason=' keyword argument. According to pytest documentation and the pattern used elsewhere in this codebase (see test_nn.py lines 21 and 38), the reason string should be passed with the 'reason=' keyword. The correct syntax should be: @pytest.mark.skipif(not Viz, reason="Skipping viz tests, unable to import viz utils")

Suggested change
@pytest.mark.skipif(not Viz, "Skipping viz tests, unable to import viz utils")
@pytest.mark.skipif(not Viz, reason="Skipping viz tests, unable to import viz utils")

Copilot uses AI. Check for mistakes.
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