-
-
Notifications
You must be signed in to change notification settings - Fork 69
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 need to strip environment variables before running #463
Labels
Comments
Some tests also fail with $ COLUMNS=81 pytest -vv "tests/test_source_cli.py::test_cli_help_default_or_none_model" |
Thanks @CyberTailor for reporting. Can you make a PR to change these tests? |
CyberTailor
added a commit
to CyberTailor/pydantic-settings
that referenced
this issue
Nov 3, 2024
Tests expect help text to be wrapped at 80 characters. Issue: pydantic#463
CyberTailor
added a commit
to CyberTailor/pydantic-settings
that referenced
this issue
Nov 3, 2024
Certain variables, when set in the running environment, can make tests fail. As environment variable names are case-insensitive by default, it's better to start with a clean environment. Issue: pydantic#463
CyberTailor
added a commit
to CyberTailor/pydantic-settings
that referenced
this issue
Nov 3, 2024
CyberTailor
added a commit
to CyberTailor/pydantic-settings
that referenced
this issue
Nov 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following tests fail when run by the Portage package manager:
They expect
${A}
to be unset, while this is one of variables defined by portage.Relevant section in "Problems faced when downstream testing Python packages":
https://mgorny.pl/articles/downstream-testing-python-packages.html#home-directory-use-config-leakage
The text was updated successfully, but these errors were encountered: