Skip to content

Commit

Permalink
fix tests in test_gold_api_ops.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sujaypatil96 committed Dec 12, 2024
1 parent 7ea94eb commit 4004ca6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_ops/test_gold_api_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def op_context(client_config):
op_config={
"study_id": "Gs0149396",
"study_type": "research_study",
"gold_nmdc_instrument_mapping_file_url": "https://raw.githubusercontent.com/microbiomedata/berkeley-schema-fy24/refs/heads/main/assets/misc/gold_seqMethod_to_nmdc_instrument_set.tsv",
"gold_nmdc_instrument_mapping_file_url": "https://raw.githubusercontent.com/microbiomedata/nmdc-schema/refs/heads/main/assets/misc/gold_seqMethod_to_nmdc_instrument_set.tsv",
"include_field_site_info": False,
},
)

Expand All @@ -55,7 +56,7 @@ def test_gold_biosamples_by_study(client_config, op_context):
],
)

(study_id, _, _) = get_gold_study_pipeline_inputs(op_context)
(study_id, _, _, _) = get_gold_study_pipeline_inputs(op_context)
gold_biosamples_by_study(op_context, study_id)

assert (
Expand All @@ -72,7 +73,7 @@ def test_gold_projects_by_study(client_config, op_context):
json=[{"projectGoldId": "Gp123456789"}],
)

(study_id, _, _) = get_gold_study_pipeline_inputs(op_context)
(study_id, _, _, _) = get_gold_study_pipeline_inputs(op_context)
gold_projects_by_study(op_context, study_id)

assert len(mock.request_history) == 1
Expand All @@ -87,7 +88,7 @@ def test_gold_analysis_projects_by_study(client_config, op_context):
json=[{"apGoldId": "Ga0499994"}],
)

(study_id, _, _) = get_gold_study_pipeline_inputs(op_context)
(study_id, _, _, _) = get_gold_study_pipeline_inputs(op_context)
gold_analysis_projects_by_study(op_context, study_id)

assert len(mock.request_history) == 1
Expand All @@ -101,7 +102,7 @@ def test_gold_study(client_config, op_context):
f'{client_config["base_url"]}/studies', json=[{"studyGoldId": "Gs0149396"}]
)

(study_id, _, _) = get_gold_study_pipeline_inputs(op_context)
(study_id, _, _, _) = get_gold_study_pipeline_inputs(op_context)
gold_study(op_context, study_id)

assert len(mock.request_history) == 1
Expand Down

0 comments on commit 4004ca6

Please sign in to comment.