Skip to content

GEOPY-3009: Pylint: Similar lines in tests (grid-apps) - #86

Merged
domfournier merged 6 commits into
developfrom
GEOPY-3009
Jul 29, 2026
Merged

GEOPY-3009: Pylint: Similar lines in tests (grid-apps)#86
domfournier merged 6 commits into
developfrom
GEOPY-3009

Conversation

@domfournier

@domfournier domfournier commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

GEOPY-3009 - Pylint: Similar lines in tests (grid-apps)

Copilot AI review requested due to automatic review settings July 29, 2026 19:53
@github-actions github-actions Bot changed the title GEOPY-3009 GEOPY-3009: Pylint: Similar lines in tests (grid-apps) Jul 29, 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 PR addresses GEOPY-3009 by reducing duplicated setup code in tests (to satisfy Pylint “similar lines”) by centralizing common grid/block-model creation logic in shared test helpers.

Changes:

  • Moved repeated block-model and Grid2D setup code from individual tests into tests/conftest.py helpers.
  • Updated block model tests to use the shared helper and adjusted assertions accordingly.
  • Updated grid model merger test expectations to account for the new block-model setup behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
tests/run_tests/grid_model_merger_test.py Switched to shared grid setup helper; updated merge assertions accordingly.
tests/run_tests/block_model_test.py Refactored tests to use shared block-model setup and updated padding/origin assertions.
tests/conftest.py Added shared setup_block_model / setup_grid2d_model helpers for reuse across tests.

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

Comment thread tests/run_tests/block_model_test.py Outdated
Comment thread tests/run_tests/block_model_test.py Outdated
Comment thread tests/run_tests/block_model_test.py
Comment thread tests/run_tests/grid_model_merger_test.py
Comment thread tests/conftest.py Outdated
Comment thread tests/run_tests/grid_model_merger_test.py
@domfournier
domfournier merged commit 0813b04 into develop Jul 29, 2026
18 checks passed
@domfournier
domfournier deleted the GEOPY-3009 branch July 29, 2026 21:36
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.

3 participants