Skip to content

Commit

Permalink
Unit test resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed May 13, 2024
1 parent 5b61b5b commit 116f129
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions tests/unit/synapseclient/unit_test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2410,7 +2410,9 @@ def test_store__needsUploadFalse__fileHandleId_not_in_local_state(syn):
with patch.object(
syn, "_getEntityBundle", return_value=returned_bundle
), patch.object(
synapseclient.client, "upload_file_handle", return_value=returned_file_handle
synapseclient.client,
"upload_file_handle_async",
return_value=returned_file_handle,
), patch.object(
syn.cache, "contains", return_value=True
), patch.object(
Expand Down Expand Up @@ -2486,7 +2488,9 @@ def test_store__existing_processed_as_update(syn):
}

with patch.object(syn, "_getEntityBundle") as mock_get_entity_bundle, patch.object(
synapseclient.client, "upload_file_handle", return_value=returned_file_handle
synapseclient.client,
"upload_file_handle_async",
return_value=returned_file_handle,
), patch.object(syn.cache, "contains", return_value=True), patch.object(
syn, "_createEntity"
) as mock_createEntity, patch.object(
Expand Down Expand Up @@ -2661,7 +2665,9 @@ def test_store__no_need_to_update_annotation(syn):
}

with patch.object(syn, "_getEntityBundle") as mock_get_entity_bundle, patch.object(
synapseclient.client, "upload_file_handle", return_value=returned_file_handle
synapseclient.client,
"upload_file_handle_async",
return_value=returned_file_handle,
), patch.object(syn.cache, "contains", return_value=True), patch.object(
syn, "_createEntity"
), patch.object(
Expand Down Expand Up @@ -2730,7 +2736,9 @@ def test_store__update_versionComment(syn):
}

with patch.object(syn, "_getEntityBundle") as mock_get_entity_bundle, patch.object(
synapseclient.client, "upload_file_handle", return_value=returned_file_handle
synapseclient.client,
"upload_file_handle_async",
return_value=returned_file_handle,
), patch.object(syn.cache, "contains", return_value=True), patch.object(
syn, "_createEntity"
) as mock_createEntity, patch.object(
Expand Down Expand Up @@ -2837,7 +2845,9 @@ def test_store__existing_no_update(syn):
}

with patch.object(syn, "_getEntityBundle") as mock_get_entity_bundle, patch.object(
synapseclient.client, "upload_file_handle", return_value=returned_file_handle
synapseclient.client,
"upload_file_handle_async",
return_value=returned_file_handle,
), patch.object(syn.cache, "contains", return_value=True), patch.object(
syn, "_createEntity"
) as mock_createEntity, patch.object(
Expand Down

0 comments on commit 116f129

Please sign in to comment.