Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete unused helper #710

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions tests/worker/test_update_with_start.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from __future__ import annotations

import uuid
from contextlib import contextmanager
from datetime import timedelta
from enum import Enum
from typing import Any, Iterator
from unittest.mock import patch
from typing import Any

import pytest

Expand Down Expand Up @@ -294,19 +292,6 @@ async def _do_start_update_test(
)
assert await update_handle.result() == "update-result-1"

@contextmanager
def assert_network_call(
self,
expect_network_call: bool,
) -> Iterator[None]:
with patch.object(
self.client.workflow_service,
"poll_workflow_execution_update",
wraps=self.client.workflow_service.poll_workflow_execution_update,
) as _wrapped_poll:
yield
assert _wrapped_poll.called == expect_network_call


async def test_update_with_start_sets_first_execution_run_id(
client: Client, env: WorkflowEnvironment
Expand Down
Loading