MDFactoryMDFactory

test_push_artifacts

func_create_simulation_folder_artifact(tmp_path, hash_value, build_input)Path

Create a simulation folder with YAML and structure file for artifact tests.

paramtmp_pathPath
paramhash_valuestr
parambuild_input

Returns

pathlib.Path
func_create_artifact_data(folder, artifact_name, files, checksums)None

Create mock artifact data in a simulation folder.

paramfolderPath
paramartifact_namestr
paramfileslist[str]
paramchecksumsdict[str, str]

Returns

None
func_artifact_record(hash_value, artifact_name='bilayer_snapshot')dict

Create a sample artifact record.

paramhash_valuestr
paramartifact_namestr
= 'bilayer_snapshot'

Returns

dict
func_overview_record(hash_value, item_name, status='completed', item_type='artifact')dict

Create a sample overview record for artifacts.

paramhash_valuestr
paramitem_namestr
paramstatusstr
= 'completed'
paramitem_typestr
= 'artifact'

Returns

dict
functemp_artifact_db(tmp_path, monkeypatch)

Force artifact database to use a temporary sqlite file.

paramtmp_path
parammonkeypatch

Returns

None
functest_init_artifact_database_creates_file(tmp_path, monkeypatch)

Test that init_artifact_database creates the database file.

paramtmp_path
parammonkeypatch

Returns

None
functest_init_artifact_database_already_exists(temp_artifact_db)

Test that init_artifact_database reports when database already exists.

paramtemp_artifact_db

Returns

None
functest_init_artifact_database_reset_preserves_overview(tmp_path, monkeypatch)

Artifact reset should clear only artifact rows in ANALYSIS_OVERVIEW.

paramtmp_path
parammonkeypatch

Returns

None
functest_upload_artifact_data_success(temp_artifact_db)

Test uploading artifact records.

paramtemp_artifact_db

Returns

None
functest_upload_artifact_data_diff_mode(temp_artifact_db)

Test uploading artifacts in diff mode skips existing.

paramtemp_artifact_db

Returns

None
functest_upload_artifact_data_force_mode(temp_artifact_db)

Test uploading artifacts with force mode overwrites existing.

paramtemp_artifact_db

Returns

None
functest_update_overview_records_artifacts(temp_artifact_db)

Test updating overview records with artifact entries.

paramtemp_artifact_db

Returns

None
functest_discover_and_prepare_artifact_data(tmp_path, monkeypatch)

Test discovering simulations with completed artifacts.

paramtmp_path
parammonkeypatch

Returns

None
functest_push_artifacts_integration(tmp_path, monkeypatch)

Test full push_artifacts flow.

paramtmp_path
parammonkeypatch

Returns

None
functest_push_artifacts_diff_mode(tmp_path, monkeypatch)

Test push_artifacts with diff mode.

paramtmp_path
parammonkeypatch

Returns

None
functest_pull_artifact(temp_artifact_db)

Test pulling artifact metadata.

paramtemp_artifact_db

Returns

None
functest_pull_artifact_overview(temp_artifact_db)

Test pulling artifact overview.

paramtemp_artifact_db

Returns

None
functest_format_artifact_summary()

Test formatting artifact summary for display.

Returns

None
functest_cli_sync_init_artifacts(tmp_path, monkeypatch)

Test CLI sync init artifacts command.

paramtmp_path
parammonkeypatch

Returns

None
functest_cli_sync_push_artifacts_no_inputs(monkeypatch)

Test CLI sync push artifacts with no inputs.

parammonkeypatch

Returns

None
functest_cli_sync_push_artifacts_force_and_diff_together(tmp_path, monkeypatch)

Test CLI rejects force and diff together.

paramtmp_path
parammonkeypatch

Returns

None
functest_cli_sync_pull_artifacts_no_artifact_name(monkeypatch)

Test CLI sync pull artifacts requires artifact_name unless --overview.

parammonkeypatch

Returns

None
functest_cli_sync_push_artifacts_path_success(tmp_path, monkeypatch)

Test CLI sync push artifacts with path input.

paramtmp_path
parammonkeypatch

Returns

None
functest_cli_sync_push_artifacts_duplicate_exits_cleanly(tmp_path, monkeypatch)

CLI should exit cleanly (no re-raise traceback) on duplicate-key errors.

paramtmp_path
parammonkeypatch

Returns

None
functest_push_artifacts_duplicate_raises(tmp_path, monkeypatch)

Test push_artifacts raises ValueError on duplicate data in default mode.

paramtmp_path
parammonkeypatch

Returns

None