waft.framework_unit_tests.test_configuration.test_config_handler module¶
- waft.framework_unit_tests.test_configuration.test_config_handler.mock_config_file(mock_default_config: Path) Path ¶
Create and populate test config file for testing and delete after test has run
- waft.framework_unit_tests.test_configuration.test_config_handler.mock_default_config() Generator[Path, Any, None] ¶
Returns mock settings object to facilitate testing
- waft.framework_unit_tests.test_configuration.test_config_handler.test_find_config_file_with_provided_path(mock_config_file: Path)¶
Test loading config file based on a specifically given config file path
- waft.framework_unit_tests.test_configuration.test_config_handler.test_init_with_missing_config_file()¶
Test instantiation of ConfigReader with no config file present - should NOT auto-create
- waft.framework_unit_tests.test_configuration.test_config_handler.test_init_with_valid_config_file(mock_config_file: Path)¶
Test instantiation of ConfigReader with a valid config file present
- waft.framework_unit_tests.test_configuration.test_config_handler.test_load_config_with_empty_file()¶
Test loading empty config file - should now return empty ConfigInfo instead of raising error
- waft.framework_unit_tests.test_configuration.test_config_handler.test_load_config_with_invalid_json()¶
Test instantiation of ConfigReader with an invalid config file present
- waft.framework_unit_tests.test_configuration.test_config_handler.test_read_empty_config(mock_default_config: Path)¶
Test that reading an empty config with ConfigBase returns a valid but empty config structure
- waft.framework_unit_tests.test_configuration.test_config_handler.test_read_missing_config(mock_default_config: Path)¶
Test that reading a missing config with ConfigBase returns a valid but empty config structure
- waft.framework_unit_tests.test_configuration.test_config_handler.test_write_empty_config(mock_default_config: Path)¶
Test that writing an empty config file in a previously non-existent file succeeds
- waft.framework_unit_tests.test_configuration.test_config_handler.test_write_empty_config_in_dir()¶
Test that writing an empty config file in a previously non-existent directory succeeds