Orchestrata Ultimate › Tests › Reference › postman › test_coverage_postman_config
Tests reference — tests/postman/test_coverage_postman_config.py
Module of tests/postman, split out because the directory page would be too large.
Prose pending.
tests/postman/test_coverage_postman_config.py
source · 14 tests · 393 lines
Coverage-focused tests for PostmanConfigManager.
Covers: postman.config, postman.exceptions
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_reload_returns_false_on_invalid_config_after_file_change |
74 | Test that reload() returns (False, error_message) when load() raises. |
| function | test_reload_returns_false_on_invalid_config_via_env |
96 | Test reload() returns (False, error_str) when env vars cause validation failure. |
| function | test_get_calls_load_when_config_is_none |
118 | Test that get() triggers load() when _config is None. |
| function | test_get_calls_load_when_config_is_none_with_default |
135 | Test get() with default value when _config starts as None. |
| function | test_watch_loop_detects_file_change_and_reloads |
155 | Test that the watch loop detects file modification and triggers reload. |
| function | test_watch_loop_handles_missing_file_gracefully |
206 | Test that _watch_loop handles file disappearance without crashing. |
| function | test_yaml_not_available_branch_raises_when_config_file_exists |
251 | Test the code path triggered when YAML_AVAILABLE is False but a config file exists. |
| function | test_convert_env_value_bool_true |
274 | Test _convert_env_value converts 'true' to True. |
| function | test_convert_env_value_bool_false |
280 | Test _convert_env_value converts 'false' to False. |
| function | test_convert_env_value_bool_case_insensitive |
286 | Test _convert_env_value converts 'TRUE' and 'False' correctly. |
| function | test_reload_skips_callbacks_when_no_previous_config |
297 | Test reload() skips callback notification when old_config is None. |
| function | test_load_raises_invalid_config_on_value_error_from_dict_to_config |
326 | Test that load() wraps ValueError from _dict_to_config in InvalidConfigError. |
| function | test_start_watch_returns_early_when_no_config_path |
348 | Test that _start_watch does nothing when config_path is None. |
| function | test_watch_loop_continues_when_config_path_set_to_none |
368 | Test that _watch_loop handles _config_path being set to None at runtime. |