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(tmp_path: Path, monkeypatch: MonkeyPatch) Generator[Path, Any, None]¶
Returns mock settings object to facilitate testing
- waft.framework_unit_tests.test_configuration.test_config_handler.test_config_file_handler_rejects_directory_path(tmp_path: Path)¶
Test that ConfigFileHandler raises error when path points to a directory.
- waft.framework_unit_tests.test_configuration.test_config_handler.test_config_handles_directory_named_like_config_file(tmp_path: Path)¶
Test case where someone accidentally creates a directory with config file name.
- waft.framework_unit_tests.test_configuration.test_config_handler.test_empty_file_handled_gracefully(tmp_path: Path)¶
Test that truly empty files (0 bytes) are handled properly.
- waft.framework_unit_tests.test_configuration.test_config_handler.test_init_with_missing_config_file(tmp_path: Path)¶
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_malformed_json_raises_error(tmp_path: Path)¶
Test that malformed JSON files raise a RuntimeError.
- waft.framework_unit_tests.test_configuration.test_config_handler.test_read_missing_config(mock_default_config: Path)¶
Test that reading a missing config with ConfigReader 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 to a previously non-existent file succeeds
- waft.framework_unit_tests.test_configuration.test_config_handler.test_write_empty_config_in_dir(tmp_path: Path)¶
Test that writing an empty config file in a previously non-existent directory succeeds