test_push_artifacts
func_create_simulation_folder_artifact(tmp_path, hash_value, build_input) → PathCreate a simulation folder with YAML and structure file for artifact tests.
paramtmp_pathPathparamhash_valuestrparambuild_inputReturns
pathlib.Pathfunc_create_artifact_data(folder, artifact_name, files, checksums) → NoneCreate mock artifact data in a simulation folder.
paramfolderPathparamartifact_namestrparamfileslist[str]paramchecksumsdict[str, str]Returns
Nonefunc_artifact_record(hash_value, artifact_name='bilayer_snapshot') → dictCreate a sample artifact record.
paramhash_valuestrparamartifact_namestr= 'bilayer_snapshot'Returns
dictfunc_overview_record(hash_value, item_name, status='completed', item_type='artifact') → dictCreate a sample overview record for artifacts.
paramhash_valuestrparamitem_namestrparamstatusstr= 'completed'paramitem_typestr= 'artifact'Returns
dictfunctemp_artifact_db(tmp_path, monkeypatch)Force artifact database to use a temporary sqlite file.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_init_artifact_database_creates_file(tmp_path, monkeypatch)Test that init_artifact_database creates the database file.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_init_artifact_database_already_exists(temp_artifact_db)Test that init_artifact_database reports when database already exists.
paramtemp_artifact_dbReturns
Nonefunctest_init_artifact_database_reset_preserves_overview(tmp_path, monkeypatch)Artifact reset should clear only artifact rows in ANALYSIS_OVERVIEW.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_upload_artifact_data_success(temp_artifact_db)Test uploading artifact records.
paramtemp_artifact_dbReturns
Nonefunctest_upload_artifact_data_diff_mode(temp_artifact_db)Test uploading artifacts in diff mode skips existing.
paramtemp_artifact_dbReturns
Nonefunctest_upload_artifact_data_force_mode(temp_artifact_db)Test uploading artifacts with force mode overwrites existing.
paramtemp_artifact_dbReturns
Nonefunctest_update_overview_records_artifacts(temp_artifact_db)Test updating overview records with artifact entries.
paramtemp_artifact_dbReturns
Nonefunctest_discover_and_prepare_artifact_data(tmp_path, monkeypatch)Test discovering simulations with completed artifacts.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_push_artifacts_integration(tmp_path, monkeypatch)Test full push_artifacts flow.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_push_artifacts_diff_mode(tmp_path, monkeypatch)Test push_artifacts with diff mode.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_pull_artifact(temp_artifact_db)Test pulling artifact metadata.
paramtemp_artifact_dbReturns
Nonefunctest_pull_artifact_overview(temp_artifact_db)Test pulling artifact overview.
paramtemp_artifact_dbReturns
Nonefunctest_format_artifact_summary()Test formatting artifact summary for display.
Returns
Nonefunctest_cli_sync_init_artifacts(tmp_path, monkeypatch)Test CLI sync init artifacts command.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_cli_sync_push_artifacts_no_inputs(monkeypatch)Test CLI sync push artifacts with no inputs.
parammonkeypatchReturns
Nonefunctest_cli_sync_push_artifacts_force_and_diff_together(tmp_path, monkeypatch)Test CLI rejects force and diff together.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_cli_sync_pull_artifacts_no_artifact_name(monkeypatch)Test CLI sync pull artifacts requires artifact_name unless --overview.
parammonkeypatchReturns
Nonefunctest_cli_sync_push_artifacts_path_success(tmp_path, monkeypatch)Test CLI sync push artifacts with path input.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_cli_sync_push_artifacts_duplicate_exits_cleanly(tmp_path, monkeypatch)CLI should exit cleanly (no re-raise traceback) on duplicate-key errors.
paramtmp_pathparammonkeypatchReturns
Nonefunctest_push_artifacts_duplicate_raises(tmp_path, monkeypatch)Test push_artifacts raises ValueError on duplicate data in default mode.
paramtmp_pathparammonkeypatchReturns
None