Skip to content

Commit e5ae350

Browse files
Fix remaining import errors in test_imports.py: use relative imports for interceptor and workflows
- Changed 'from interceptor import' to 'from .interceptor import' - Changed 'from workflows import' to 'from .workflows import' - This resolves pytest collection error: ModuleNotFoundError: No module named 'interceptor' - All imports in test_imports.py now use relative imports consistently - Local lint and test checks pass completely Co-Authored-By: deepika awasthi <deepika.awasthi@temporal.io>
1 parent fd7d229 commit e5ae350

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

multiline_logging/test_imports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"""
55

66
try:
7-
from interceptor import MultilineLoggingInterceptor
7+
from .interceptor import MultilineLoggingInterceptor
88

99
print("✅ Interceptor imports successfully")
1010

1111
from .activities import complex_failing_activity, failing_activity
1212

1313
print("✅ Activities import successfully")
1414

15-
from workflows import MultilineLoggingWorkflow
15+
from .workflows import MultilineLoggingWorkflow
1616

1717
print("✅ Workflows import successfully")
1818

0 commit comments

Comments
 (0)