Skip to content

Commit a5f909a

Browse files
committed
Passthrough 3rd-party imports in tests helpers module
1 parent cc12038 commit a5f909a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/helpers/nexus.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
from dataclasses import dataclass
33
from typing import Any, Mapping, Optional
44

5-
import httpx
6-
from google.protobuf import json_format
7-
85
import temporalio.api
96
import temporalio.api.nexus.v1
107
import temporalio.api.operatorservice.v1
8+
import temporalio.workflow
119
from temporalio.client import Client
1210
from temporalio.converter import FailureConverter, PayloadConverter
1311

12+
with temporalio.workflow.unsafe.imports_passed_through():
13+
import httpx
14+
from google.protobuf import json_format
15+
1416

1517
def make_nexus_endpoint_name(task_queue: str) -> str:
1618
# Create endpoints for different task queues without name collisions.

0 commit comments

Comments
 (0)