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

Put tests for non-default sources in separate files #429

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

makukha
Copy link
Contributor

@makukha makukha commented Sep 27, 2024

Fixes #427.

Tests for settings sources, that are turned on by default, reside untouched in test_settings.py: DotEnvSettingsSource, EnvSettingsSource, InitSettingsSource, SecretsSettingsSource.

Tests for other sources are moved to separate files.

@makukha
Copy link
Contributor Author

makukha commented Sep 27, 2024

@hramezani ready for review. GitHub lint check fails on code that I didn't modify, although local make lint passes successfully. Should I update code to fix GitHub's lint errors?

@hramezani hramezani force-pushed the tests-refactoring branch 2 times, most recently from 52c4f5e to 7eb9f46 Compare September 30, 2024 17:07
@hramezani hramezani merged commit 8f7653c into pydantic:main Sep 30, 2024
18 checks passed
@hramezani
Copy link
Member

Thanks @makukha

@makukha
Copy link
Contributor Author

makukha commented Sep 30, 2024

@hramezani I'm glad to help :)

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 this pull request may close these issues.

Separate tests related to specific settings sources
2 participants