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

check warnings in testbank #803

Closed
Tracked by #1056
veenstrajelmer opened this issue Mar 13, 2024 · 0 comments · Fixed by #1064
Closed
Tracked by #1056

check warnings in testbank #803

veenstrajelmer opened this issue Mar 13, 2024 · 0 comments · Fixed by #1064

Comments

@veenstrajelmer
Copy link
Collaborator

veenstrajelmer commented Mar 13, 2024

Warnings on 16-01-2025 in github python 3.12 action.

Errors caused by cdsapi

tests/test_download.py::test_cds_credentials_oldurl_incorrectkey_rcfile
tests/test_download.py::test_cds_credentials_oldurl_incorrectkey_envvars
  C:\Users\veenstra\AppData\Local\miniforge3\envs\dfm_tools_env\Lib\site-packages\datapi\api_client.py:83: UserWarning: 404 Client Error: Not Found for url: https://cds.climate.copernicus.eu/api/v2/catalogue/v1/messages

    warnings.warn(str(exc), UserWarning)

tests/test_download.py::test_cds_credentials_oldurl_incorrectkey_rcfile
tests/test_download.py::test_cds_credentials_oldurl_incorrectkey_envvars
  C:\Users\veenstra\AppData\Local\miniforge3\envs\dfm_tools_env\Lib\site-packages\datapi\api_client.py:83: UserWarning: HTTPSConnectionPool(host='cds-beta.climate.copernicus.eu', port=443): Max retries exceeded with url: /api/catalogue/v1/messages (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1006)')))
    warnings.warn(str(exc), UserWarning)

dfm_tools errors, picked up in #1063

tests/test_observations.py::test_ssh_retrieve_data[gesla3]
  C:\DATA\checkouts\dfm_tools\dfm_tools\observations.py:683: FutureWarning: Support for nested sequences for 'parse_dates' in pd.read_csv is deprecated. Combine the desired columns with pd.to_datetime after parsing instead.
    data = pd.read_csv(f, comment='#', sep="\\s+",

Raise all warnings in pytest and define accepted warnings via filter

This was referenced Mar 13, 2024
@veenstrajelmer veenstrajelmer changed the title check FutureWarnings in testbank check warnings in testbank May 16, 2024
This was referenced Sep 3, 2024
This was referenced Sep 26, 2024
@veenstrajelmer veenstrajelmer linked a pull request Jan 16, 2025 that will close this issue
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 a pull request may close this issue.

1 participant