Skip to content
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

Tests fail if ~/.esmvaltool/config-user.yml file exists #2541

Closed
bouweandela opened this issue Oct 3, 2024 · 1 comment · Fixed by #2543
Closed

Tests fail if ~/.esmvaltool/config-user.yml file exists #2541

bouweandela opened this issue Oct 3, 2024 · 1 comment · Fixed by #2543
Labels

Comments

@bouweandela
Copy link
Member

Since #2448 was merged, several unit tests fail if the file ~/.esmvaltool/config-user.yml exists.

FAILED tests/unit/config/test_config_object.py::test_reload - AssertionError: assert Config({'auxi...tent': False}) == Config({'auxi...tent': False})
FAILED tests/unit/config/test_config_object.py::test_reload_fail - Failed: DID NOT RAISE <class 'esmvalcore.exceptions.InvalidConfigParameter'>
FAILED tests/unit/main/test_esmvaltool.py::test_header - AssertionError: assert 'Reading conf...[deprecated])' == 'Reading conf...ine argument)'
FAILED tests/integration/test_deprecated_config.py::test_no_deprecation_default_cfg - esmvalcore.exceptions.ESMValCoreDeprecationWarning: Usage of the single configuration file ~/.esmvaltool/config-user.yml or specifying it via CLI argument `--config_file` has been deprecated in ESMValCore version 2.12.0 and is...

@schlunma Would you have time to take a look at this?

@schlunma
Copy link
Contributor

schlunma commented Oct 7, 2024

Will do! Looks like I never ran all tests with an old config file on my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants