Skip to content

Commit 57a55d6

Browse files
authored
test: correct isinstance check in webhook integration test (#662)
1 parent b73ba94 commit 57a55d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/test_webhook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
ListOfRuns,
1515
ListOfWebhookDispatches,
1616
ListOfWebhooks,
17+
Run,
1718
Webhook,
1819
WebhookDispatch,
1920
WebhookEventType,
@@ -39,7 +40,7 @@ async def _get_finished_run_id(client: ApifyClient | ApifyClientAsync) -> str:
3940
# No completed runs found - start one and wait for it to finish
4041
run = await maybe_await(client.actor(HELLO_WORLD_ACTOR).call())
4142

42-
assert isinstance(run, ListOfRuns)
43+
assert isinstance(run, Run)
4344

4445
return run.id
4546

0 commit comments

Comments
 (0)