Skip to content

Cleanup skipped and xfailed unittests - #3008

Draft
erikvansebille wants to merge 17 commits into
Parcels-code:mainfrom
erikvansebille:cleanup-particlefile-unittests
Draft

erikvansebille wants to merge 17 commits into
Parcels-code:mainfrom
erikvansebille:cleanup-particlefile-unittests

Conversation

@erikvansebille

@erikvansebille erikvansebille commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Description

This PR cleans up some of the (failing/skipped) unit tests - thereby also making some small fixes to src. Somewhat tangentially, it also renames the .localize function to .localise, as we (try to) adhere to UK spelling in Parcels.

Checklist

AI Disclosure

None

@erikvansebille erikvansebille changed the title Cleanup particlefile unittests Cleanup skipped and xfailed unittests Oct 26, 2026
@pytest.mark.skip(reason="Pending ParticleFile refactor; see issue #2386")
@pytest.mark.parametrize("dt", [-np.timedelta64(1, "s"), np.timedelta64(1, "s")])
@pytest.mark.parametrize("maxvar", [2, 4, 10])
def test_pset_repeated_release_delayed_adding_deleting(fieldset, tmp_parquet, dt, maxvar):

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I spent quite some time on making this test work for v4, but then decided that it was too complex because the parquet format and the kernel loop have changed so much. So I suggest to remove it - we test/check output in tutorials and on other places

Comment thread tests/test_xgrid.py
@pytest.mark.skip(
"Needs updating after refactoring from https://github.com/Parcels-code/Parcels/pull/2646"
) # TODO: I think we can just rely on the SGRID metadata for this (which already has robust error messaging). How should discrepencies between SGRID and axis attr be handled?
def test_dim_with_duplicate_axis():

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This test now seems to pass. Parcels doesn't throw an error when a Variable has two dimensions with the same axis. Is that expected?

Since it failed on min-versions test

This branch has not been deployed

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

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

Go through all skipped and xfailed pytest tests

1 participant