export function createArtifact()

in src/utils/testhelper.ts [177:197]


export function createArtifact(artifact: Partial<Artifact>): Artifact {
  return {
    flow_id: 'LogTestFlow',
    run_number: 968832,
    step_name: 'loglines',
    task_id: 33632798,
    name: '_current_step',
    location: '/metaflow/runs/v1/LogTestFlow/data/14/uuid',
    ds_type: 's3',
    sha: 'uuid',
    type: 'metaflow.artifact',
    content_type: 'gzip+pickle-v2',
    user_name: 'testuser',
    attempt_id: 0,
    ts_epoch: 1632226288635,
    tags: [],
    system_tags: ['user:testuser', 'python_version:3.7.11', 'date:2021-09-21'],
    content: 'loglines',
    ...artifact,
  };
}