Skip to content

test: refactor default P2D mesh setup into pytest fixture#5376

Open
swastim01 wants to merge 4 commits intopybamm-team:mainfrom
swastim01:feat/p2d-mesh-fixture
Open

test: refactor default P2D mesh setup into pytest fixture#5376
swastim01 wants to merge 4 commits intopybamm-team:mainfrom
swastim01:feat/p2d-mesh-fixture

Conversation

@swastim01
Copy link
Contributor

This PR introduces a pytest fixture for constructing the default P2D mesh and
uses it in a small number of finite volume unit tests to reduce repeated setup.

No test behaviour is changed.

Contributes to #4502

Type of change

Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #)

Important checks:

Please confirm the following before marking the PR as ready for review:

  • No style issues: nox -s pre-commit
  • All tests pass: nox -s tests
  • The documentation builds: nox -s doctests
  • Code is commented for hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

@swastim01 swastim01 requested a review from a team as a code owner February 6, 2026 09:55
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