MDFactoryMDFactory

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

None
functest_defaults_loaded()

Settings defaults should include all expected sections.

Returns

None
functest_parameter_store_default()

Default parameter_store should point into the data directory.

Returns

None
functest_parameter_store_setter()

parameter_store setter should override the default.

Returns

None
functest_cgenff_dir_default()

Default cgenff_dir resolves from empty SILCSBIODIR.

Returns

None
functest_reload()

reload() should re-read config from disk.

Returns

None
functest_is_configured_false_by_default(tmp_path, monkeypatch)

is_configured returns False when no user config file exists.

paramtmp_path
parammonkeypatch

Returns

None
functest_is_configured_true_when_file_exists(tmp_path, monkeypatch)

is_configured returns True when user config file exists.

paramtmp_path
parammonkeypatch

Returns

None
functest_env_override_config_dir(tmp_path, monkeypatch)

MDFACTORY_CONFIG_DIR env var should override the config directory.

paramtmp_path
parammonkeypatch

Returns

None
functest_env_override_data_dir(tmp_path, monkeypatch)

MDFACTORY_DATA_DIR env var should override the data directory.

paramtmp_path
parammonkeypatch

Returns

None
functest_env_override_config_file(tmp_path, monkeypatch)

MDFACTORY_CONFIG env var should load config from that file.

paramtmp_path
parammonkeypatch

Returns

None
functest_get_db_path_run_database()

get_db_path should return a path for RUN_DATABASE.

Returns

None
functest_get_db_path_analysis_table()

get_db_path for ANALYSIS_* returns the analysis db path.

Returns

None
functest_get_db_path_unsupported_type()

get_db_path raises for unsupported db_type.

Returns

None
functest_get_csv_path_run_database()

get_csv_path returns a CSV path for static tables.

Returns

None
functest_get_csv_path_dynamic_analysis()

get_csv_path returns directory-based path for analysis tables.

Returns

None
functest_get_foundry_path_analysis()

get_foundry_path returns correct path for analysis tables.

Returns

None
functest_get_foundry_path_artifact()

get_foundry_path returns correct path for artifact tables.

Returns

None
functest_resolve_local_path_absolute()

_resolve_local_path returns absolute paths unchanged.

Returns

None
functest_resolve_local_path_relative(tmp_path)

_resolve_local_path resolves relative paths against config base dir.

paramtmp_path

Returns

None
functest_resolve_local_path_empty()

_resolve_local_path returns empty string for empty input.

Returns

None