Skip to content

Commit ad5f833

Browse files
committed
use prior synapse_client instance. LookupError message
1 parent d5bff02 commit ad5f833

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/integration/synapseclient/models/synchronous/test_submission_status.py

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

743743
# WHEN I cancel the submission
744-
test_submission.cancel()
744+
test_submission.cancel(synapse_client=self.syn)
745745

746746
# THEN I should be able to retrieve the updated status showing cancellation was requested
747747
final_status = SubmissionStatus(id=submission_id).get(synapse_client=self.syn)

tests/unit/synapseclient/models/synchronous/unit_test_submission.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,9 @@ async def test_fetch_latest_entity_api_error(self) -> None:
373373
new_callable=AsyncMock,
374374
side_effect=SynapseHTTPError("Entity not found"),
375375
) as mock_rest_get:
376-
# THEN it should raise a ValueError with context about the original error
376+
# THEN it should raise a LookupError with context about the original error
377377
with pytest.raises(
378-
ValueError, match=f"Unable to fetch entity information for {ENTITY_ID}"
378+
LookupError, match=f"Unable to fetch entity information for {ENTITY_ID}"
379379
):
380380
await submission._fetch_latest_entity(synapse_client=self.syn)
381381

0 commit comments

Comments
 (0)