Skip to content

Commit d5bff02

Browse files
committed
correctly pass synapse_client instance
1 parent 6a8432b commit d5bff02

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

synapseclient/models/submission_status.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ async def store_async(
661661
)
662662
return self
663663

664-
request_body = self.to_synapse_request()
664+
request_body = self.to_synapse_request(synapse_client=synapse_client)
665665

666666
response = await evaluation_services.update_submission_status(
667667
submission_id=self.id,
@@ -795,7 +795,7 @@ async def batch_update_submission_statuses_async(
795795
# Convert SubmissionStatus objects to dictionaries
796796
status_dicts = []
797797
for status in statuses:
798-
status_dict = status.to_synapse_request()
798+
status_dict = status.to_synapse_request(synapse_client=synapse_client)
799799
status_dicts.append(status_dict)
800800

801801
# Prepare the batch request body

tests/integration/synapseclient/models/async/test_submission_status_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ async def test_submission_cancellation_workflow(self, test_submission: Submissio
766766
assert updated_status.cancel_requested is False
767767

768768
# WHEN I cancel the submission
769-
await test_submission.cancel_async()
769+
await test_submission.cancel_async(synapse_client=self.syn)
770770

771771
# THEN I should be able to retrieve the updated status showing cancellation was requested
772772
final_status = await SubmissionStatus(id=submission_id).get_async(

0 commit comments

Comments
 (0)