fre.yamltools.tests.test_helpers module

fre.yamltools.tests.test_helpers.temp_path()

Fixture that creates a temporary YAML file and returns its path, then cleans up.

fre.yamltools.tests.test_helpers.test_check_fre_version_matching(yaml_with_matching_version)

check_fre_version should pass when fre_cli_version matches installed version.

fre.yamltools.tests.test_helpers.test_check_fre_version_mismatch(yaml_with_wrong_version)

check_fre_version should raise ValueError when fre_cli_version does not match.

fre.yamltools.tests.test_helpers.test_check_fre_version_missing(yaml_without_version, caplog)

check_fre_version should log info but not error when fre_cli_version is missing.

fre.yamltools.tests.test_helpers.test_yaml_load_raises_file_not_found()
fre.yamltools.tests.test_helpers.test_yaml_load_reads_yaml_file_correctly(temp_path)
fre.yamltools.tests.test_helpers.yaml_with_matching_version(tmp_path)

Create a YAML file with the correct fre_cli_version.

fre.yamltools.tests.test_helpers.yaml_with_wrong_version(tmp_path)

Create a YAML file with an incorrect fre_cli_version.

fre.yamltools.tests.test_helpers.yaml_without_version(tmp_path)

Create a YAML file without fre_cli_version.