Skip to content

test: replace MockField with a real ekd field in tests#236

Merged
HCookie merged 7 commits intomainfrom
test/test_fields_replace_mock
Feb 27, 2026
Merged

test: replace MockField with a real ekd field in tests#236
HCookie merged 7 commits intomainfrom
test/test_fields_replace_mock

Conversation

@aaron-hopkinson
Copy link
Contributor

@aaron-hopkinson aaron-hopkinson commented Feb 20, 2026

Description

To avoid the problem of "mock skew" (i.e. the behaviour of a mock differing from the real object), the MockField in the tests has been replaced with a real earthkit data field (in memory)

As a contributor to the Anemoi framework, please ensure that your changes include unit tests, updates to any affected dependencies and documentation, and have been tested in a parallel setting (i.e., with multiple GPUs). As a reviewer, you are also responsible for verifying these aspects and requesting changes if they are not adequately addressed. For guidelines about those please refer to https://anemoi.readthedocs.io/en/latest/

By opening this pull request, I affirm that all authors agree to the Contributor License Agreement.

@github-project-automation github-project-automation bot moved this to To be triaged in Anemoi-dev Feb 20, 2026
@aaron-hopkinson aaron-hopkinson self-assigned this Feb 20, 2026
@github-actions github-actions bot added the tests label Feb 20, 2026
@aaron-hopkinson aaron-hopkinson changed the title test: replace MockField with a real ekd field in field tests test: replace MockField with a real ekd field in tests Feb 23, 2026
@github-project-automation github-project-automation bot moved this from To be triaged to Under Review in Anemoi-dev Feb 27, 2026
@github-project-automation github-project-automation bot moved this from Under Review to For merging in Anemoi-dev Feb 27, 2026
@HCookie HCookie merged commit 3920c51 into main Feb 27, 2026
71 checks passed
@HCookie HCookie deleted the test/test_fields_replace_mock branch February 27, 2026 14:16
@github-project-automation github-project-automation bot moved this from For merging to Done in Anemoi-dev Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants