Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pydantic/pydantic-settings
/ functions
Functions
697 in github.com/pydantic/pydantic-settings
⨍
Functions
697
◇
Types & classes
267
↳
Endpoints
2
Function
test_read_env_file_syntax_wrong
(tmp_path)
tests/test_settings.py:1463
Function
test_repr
(tmp_path)
tests/test_source_nested_secrets.py:48
Function
test_repr
()
tests/test_source_yaml.py:23
Function
test_repr
()
tests/test_source_toml.py:24
Function
test_repr
()
tests/test_source_json.py:27
Method
test_repr
(self)
tests/test_source_aws_secrets_manager.py:47
Function
test_required_sub_model
(env)
tests/test_settings.py:574
Function
test_root_model_as_field
(env)
tests/test_settings.py:2778
Method
test_secret_manager_cache_behavior
Test that accessing the same secret twice does not fetch it again from GCP.
tests/test_source_gcp_secret_manager.py:598
Method
test_secret_manager_case_insensitive_success
Test secret manager getitem case insensitive success.
tests/test_source_aws_secrets_manager.py:92
Method
test_secret_manager_mapping_collision
( self, mock_secret_client_factory, case_sensitive, requested_key, expected_value )
tests/test_source_gcp_secret_manager.py:397
Method
test_secret_manager_mapping_gcp_project_path
(self, secret_manager_mapping, mock_secret_client)
tests/test_source_gcp_secret_manager.py:123
Method
test_secret_manager_mapping_getitem_access_error
(self, secret_manager_mapping, mocker)
tests/test_source_gcp_secret_manager.py:131
Method
test_secret_manager_mapping_init
(self, secret_manager_mapping)
tests/test_source_gcp_secret_manager.py:119
Method
test_secret_manager_mapping_iter
(self, secret_manager_mapping)
tests/test_source_gcp_secret_manager.py:138
Method
test_secret_manager_mapping_list_secrets_error
(self, secret_manager_mapping, mocker)
tests/test_source_gcp_secret_manager.py:269
Method
test_secret_manager_mapping_retrieval_cases
Tests various combinations of case sensitivity, secret naming, and error raising (when the Key doesn't exist).
tests/test_source_gcp_secret_manager.py:351
Method
test_secret_manager_mapping_secret_names
(self, secret_manager_mapping)
tests/test_source_gcp_secret_manager.py:127
Function
test_secret_settings_source_custom_env_parse
(tmp_path)
tests/test_settings.py:2180
Method
test_secret_version_annotation
(self, mock_secret_client, mocker, case_sensitive)
tests/test_source_gcp_secret_manager.py:426
Method
test_secret_version_annotation_access_failure
Test SecretVersion annotation when secret access fails (covers branch 209->202).
tests/test_source_gcp_secret_manager.py:498
Method
test_secret_version_annotation_case_insensitive_multiple_versions
Test fetching multiple versions of the same secret with case-insensitive, matching different aliases.
tests/test_source_gcp_secret_manager.py:528
Method
test_secret_version_annotation_case_sensitive_failure
Test that case sensitive lookup fails when case mismatches.
tests/test_source_gcp_secret_manager.py:560
Method
test_secret_version_annotation_duplicate_alias_fail
Test that duplicate aliases fail when populate_by_name is False.
tests/test_source_gcp_secret_manager.py:713
Method
test_secret_version_annotation_missing_secret
Test SecretVersion annotation when secret is missing
tests/test_source_gcp_secret_manager.py:475
Method
test_secret_version_no_fallback
Test that we do NOT fallback to 'latest' if a specific version is requested but missing.
tests/test_source_gcp_secret_manager.py:632
Function
test_secrets_case_insensitive
(tmp_path)
tests/test_settings.py:1770
Function
test_secrets_case_sensitive
(tmp_path)
tests/test_settings.py:1759
Function
test_secrets_dir_as_arg
(env, tmp_files)
tests/test_source_nested_secrets.py:100
Function
test_secrets_dotenv_precedence
(tmp_path)
tests/test_settings.py:1977
Function
test_secrets_file_is_a_directory
(tmp_path)
tests/test_settings.py:1926
Function
test_secrets_file_is_a_directory_multiple_all
(tmp_path)
tests/test_settings.py:1942
Function
test_secrets_file_is_a_directory_multiple_one
(tmp_path)
tests/test_settings.py:1962
Function
test_secrets_invalid_secrets_dir
(tmp_path)
tests/test_settings.py:1853
Function
test_secrets_invalid_secrets_dir_multiple_all
(tmp_path)
tests/test_settings.py:1866
Function
test_secrets_invalid_secrets_dir_multiple_one
(tmp_path)
tests/test_settings.py:1877
Function
test_secrets_missing
(tmp_path)
tests/test_settings.py:1837
Function
test_secrets_missing_location
(tmp_path)
tests/test_settings.py:1889
Function
test_secrets_missing_location_multiple_all
(tmp_path)
tests/test_settings.py:1898
Function
test_secrets_missing_location_multiple_one
(tmp_path)
tests/test_settings.py:1912
Function
test_secrets_nested_optional_json
(tmp_path)
tests/test_settings.py:1809
Function
test_secrets_path
(tmp_path)
tests/test_settings.py:1708
Function
test_secrets_path_invalid_json
(tmp_path)
tests/test_settings.py:1824
Function
test_secrets_path_json
(tmp_path)
tests/test_settings.py:1797
Function
test_secrets_path_multiple
(tmp_path)
tests/test_settings.py:1720
Function
test_secrets_path_url
(tmp_path)
tests/test_settings.py:1782
Function
test_secrets_path_with_validation_alias
(tmp_path)
tests/test_settings.py:1747
Function
test_set_dict_model
(env)
tests/test_settings.py:558
Function
test_settings
()
tests/test_source_gcp_secret_manager.py:100
Function
test_settings_source_current_state
(env)
tests/test_settings.py:3062
Method
test_settings_source_init
( self, mocker, mock_google_auth, test_settings, project_id, credentials, expected_project_id )
tests/test_source_gcp_secret_manager.py:148
Method
test_settings_source_init_with_custom_values_no_project_raises_error
(self, mocker, test_settings)
tests/test_source_gcp_secret_manager.py:159
Method
test_settings_source_load_env_vars
(self, mock_secret_client, mocker, test_settings)
tests/test_source_gcp_secret_manager.py:166
Method
test_settings_source_repr
(self, test_settings)
tests/test_source_gcp_secret_manager.py:176
Function
test_settings_source_settings_sources_data
(env)
tests/test_settings.py:3094
Method
test_snake_case_conversion
Test that secret names are mapped to snake case in field names.
tests/test_source_azure_key_vault.py:212
Method
test_snake_case_conversion_missing_alias
(self, mocker: MockerFixture)
tests/test_source_azure_key_vault.py:277
Function
test_source_off
(env, tmp_files)
tests/test_source_nested_secrets.py:58
Function
test_str_based_root_model
Testing to pass string directly to root model.
tests/test_settings.py:2793
Function
test_strip_whitespace
(env, tmp_files)
tests/test_source_nested_secrets.py:504
Function
test_sub_env
(env)
tests/test_settings.py:88
Function
test_sub_env_missing
()
tests/test_settings.py:100
Function
test_sub_env_override
(env)
tests/test_settings.py:94
Function
test_subdir
(env, tmp_files)
tests/test_source_nested_secrets.py:155
Function
test_symlink_dir_escaping_secrets_dir_is_ignored
Regression test for GHSA-4xgf-cpjx-pc3j. A directory entry inside ``secrets_dir`` that is a symbolic link to a directory *outside* of ``secre
tests/test_source_nested_secrets.py:200
Function
test_symlink_escape_does_not_bypass_max_size
Regression test for GHSA-4xgf-cpjx-pc3j (size-limit bypass). The ``secrets_dir_max_size`` accounting must see the same files as the loader. A
tests/test_source_nested_secrets.py:258
Function
test_symlink_file_escaping_secrets_dir_is_ignored
Regression test for GHSA-4xgf-cpjx-pc3j (file-level symlink variant).
tests/test_source_nested_secrets.py:232
Function
test_symlink_subdir
(env, tmp_files)
tests/test_source_nested_secrets.py:177
Function
test_symlinked_dir_escaping_secrets_dir_is_not_walked
A symlinked directory pointing outside ``secrets_dir`` must not be traversed. Even though out-of-tree files are filtered out, descending into the
tests/test_source_nested_secrets.py:326
Function
test_toml_file
(tmp_path)
tests/test_source_toml.py:30
Function
test_toml_no_file
()
tests/test_source_toml.py:66
Method
test_traversable_support
(self, json_config_path: Traversable)
tests/test_source_json.py:198
Function
test_validation_alias_alias_choices_with_alias_path_first
Test that AliasPath in AliasChoices doesn't interfere with env var lookup. Regression test for https://github.com/pydantic/pydantic-settings/issu
tests/test_settings.py:977
Function
test_validation_alias_with_env_prefix
(env)
tests/test_settings.py:996
Function
test_validation_alias_with_env_prefix_and_env_prefix_target
(env, env_prefix_target)
tests/test_settings.py:1014
Function
test_validation_aliases
(env)
tests/test_settings.py:942
Function
test_validation_aliases_alias_choices
(env)
tests/test_settings.py:961
Function
test_validation_aliases_alias_path
(env)
tests/test_settings.py:953
Function
test_warns_if_config_keys_are_set_but_source_is_missing
()
tests/test_settings.py:3508
Function
test_with_prefix
(env)
tests/test_settings.py:255
Function
test_yaml_config_section
(tmp_path)
tests/test_source_yaml.py:215
Function
test_yaml_config_section_complex_unusual_keys
Test complex scenario with multiple unusual characters in nested keys.
tests/test_source_yaml.py:547
Function
test_yaml_config_section_empty_path
Test that empty section path is rejected.
tests/test_source_yaml.py:441
Function
test_yaml_config_section_nested_path
(tmp_path)
tests/test_source_yaml.py:277
Function
test_yaml_config_section_nested_path_two_levels
(tmp_path)
tests/test_source_yaml.py:314
Function
test_yaml_config_section_non_dict_intermediate
Test that traversing through non-dict intermediate values raises clear error.
tests/test_source_yaml.py:584
Function
test_yaml_config_section_unusual_literal_keys
Test that keys with leading/trailing/consecutive dots can be accessed as literal keys.
tests/test_source_yaml.py:472
Function
test_yaml_config_section_with_literal_dots
Test that keys containing literal dots can be accessed using greedy matching.
tests/test_source_yaml.py:380
Function
test_yaml_empty_file
(tmp_path)
tests/test_source_yaml.py:114
Function
test_yaml_file
(tmp_path)
tests/test_source_yaml.py:57
Function
test_yaml_no_file
()
tests/test_source_yaml.py:94
Function
test_yaml_not_installed
(tmp_path)
tests/test_source_yaml.py:29
Function
tmp_files
(tmp_path)
tests/conftest.py:42
Function
tracking_iterdir
(self)
tests/test_source_nested_secrets.py:347
Method
walk
(directory: Path)
pydantic_settings/sources/providers/nested_secrets.py:173
Method
warn_if_not_used
(source_type: type[PydanticBaseSettingsSource], keys: tuple[str, ...])
pydantic_settings/main.py:545
Function
write_to_fifo
()
tests/test_settings.py:1608
← previous
601–697 of 697, ranked by callers