test_settings
Tests for the unified settings module.
functest_import_does_not_crash()Importing settings should not raise or do file I/O beyond reading config.
Returns
Nonefunctest_defaults_loaded()Settings defaults should include all expected sections.
Returns
Nonefunctest_parameter_store_default()Default parameter_store should point into the data directory.
Returns
Nonefunctest_parameter_store_setter()parameter_store setter should override the default.
Returns
Nonefunctest_cgenff_dir_default()Default cgenff_dir resolves from empty SILCSBIODIR.
Returns
Nonefunctest_reload()reload() should re-read config from disk.
Returns
Nonefunctest_is_configured_false_by_default(tmp_path, monkeypatch)is_configured returns False when no user config file exists.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_is_configured_true_when_file_exists(tmp_path, monkeypatch)is_configured returns True when user config file exists.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_env_override_config_dir(tmp_path, monkeypatch)MDFACTORY_CONFIG_DIR env var should override the config directory.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_env_override_data_dir(tmp_path, monkeypatch)MDFACTORY_DATA_DIR env var should override the data directory.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_env_override_config_file(tmp_path, monkeypatch)MDFACTORY_CONFIG env var should load config from that file.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_get_db_path_run_database()get_db_path should return a path for RUN_DATABASE.
Returns
Nonefunctest_get_db_path_analysis_table()get_db_path for ANALYSIS_* returns the analysis db path.
Returns
Nonefunctest_get_db_path_unsupported_type()get_db_path raises for unsupported db_type.
Returns
Nonefunctest_get_csv_path_run_database()get_csv_path returns a CSV path for static tables.
Returns
Nonefunctest_get_csv_path_dynamic_analysis()get_csv_path returns directory-based path for analysis tables.
Returns
Nonefunctest_get_foundry_path_analysis()get_foundry_path returns correct path for analysis tables.
Returns
Nonefunctest_get_foundry_path_artifact()get_foundry_path returns correct path for artifact tables.
Returns
Nonefunctest_resolve_local_path_absolute()_resolve_local_path returns absolute paths unchanged.
Returns
Nonefunctest_resolve_local_path_relative(tmp_path)_resolve_local_path resolves relative paths against config base dir.
paramtmp_pathReturns
Nonefunctest_resolve_local_path_empty()_resolve_local_path returns empty string for empty input.
Returns
None