Skip to content

fix pytest on VM #1176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
veenstrajelmer opened this issue May 1, 2025 · 0 comments
Open

fix pytest on VM #1176

veenstrajelmer opened this issue May 1, 2025 · 0 comments

Comments

@veenstrajelmer
Copy link
Collaborator

veenstrajelmer commented May 1, 2025

Running pytest tests/test_modelbuilder.py::test_cmems_nc_to_ini on the VM now raises the following errors due to curly brackets that are trying to be formatted:

=============================================== short test summary info ===============================================
FAILED tests/test_modelbuilder.py::test_cmems_nc_to_ini[midnight] - KeyError: '45c63495-0000-0000-0000-100000000000'
FAILED tests/test_modelbuilder.py::test_cmems_nc_to_ini[noon] - KeyError: '45c63495-0000-0000-0000-100000000000'
FAILED tests/test_modelbuilder.py::test_cmems_nc_to_ini[monthly] - KeyError: '45c63495-0000-0000-0000-100000000000'
================================================== 3 failed in 1.46s ==================================================

This did not happen before, now probably happens because of some VM setting/update. This is not an issue for users, since the error is not raised when just executing the code in Spyder.

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

No branches or pull requests

1 participant