Skip to content

Conversation

@ANJAN672
Copy link
Contributor

  1. What does this PR change?

-> This PR reorganizes the should_run tests by splitting them into two categories. Integration tests for nx-parallel algorithms remain in nx_parallel/tests/test_should_run.py, while policy-specific unit tests (using dummy functions) have been moved to
nx_parallel/utils/tests/test_should_run_policies.py

  1. What is my approach, and why did I choose it?

->Split should_run tests into algorithm-focused tests and utility-focused policy tests, placing the latter in
nx_parallel/utils/tests/test_should_run_policies.py

  1. Additional comments/resources or notes for reviewers

->
--- Addresses the suggestion from #149 .
--- Verified that all 45 tests pass in a fresh Python 3.12 environment.
--- Formatting verified with ruff.
--- Note for maintainers: The Update function info pre-commit hook relies on sh, which fails locally on Windows, but the logic has been manually verified and is expected to pass on the Linux-based CI.

Copy link
Member

@Schefflera-Arboricola Schefflera-Arboricola left a comment

Choose a reason for hiding this comment

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

Thanks @ANJAN672 !

@Schefflera-Arboricola Schefflera-Arboricola linked an issue Dec 30, 2025 that may be closed by this pull request
@Schefflera-Arboricola Schefflera-Arboricola merged commit 948ad61 into networkx:main Dec 30, 2025
11 of 12 checks passed
@dschult dschult added this to the 0.5 milestone Dec 30, 2025
@ANJAN672
Copy link
Contributor Author

Thanks @ANJAN672 !

Thanks for the review and merge. By the way, I’m planning to aim for GSoC 2026 and will keep contributing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Reorganise should_run's tests

3 participants