Skip to content

Commit 5b7d970

Browse files
committed
Use relative import for _test_helpers (CI fix)
The absolute 'from tests.durabletask...' import worked locally because pip install -e .[dev] adds the repo root to sys.path, but CI runs pytest without that and pytest's rootdir doesn't include a 'tests' top-level package. Switch to a relative import inside the history_export test package (which already has __init__.py).
1 parent 50bb4a5 commit 5b7d970

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/durabletask/extensions/history_export/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from durabletask.extensions.history_export.activities import clear_context
3535
from durabletask.testing import create_test_backend
3636

37-
from tests.durabletask.extensions.history_export._test_helpers import wait_until
37+
from ._test_helpers import wait_until
3838

3939

4040
PORT = 50263

tests/durabletask/extensions/history_export/test_entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
)
3131
from durabletask.testing import create_test_backend
3232

33-
from tests.durabletask.extensions.history_export._test_helpers import wait_until
33+
from ._test_helpers import wait_until
3434

3535

3636
PORT = 50260

tests/durabletask/extensions/history_export/test_orchestrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from durabletask.extensions.history_export import orchestrator as orch_mod
3333
from durabletask.testing import create_test_backend
3434

35-
from tests.durabletask.extensions.history_export._test_helpers import wait_until
35+
from ._test_helpers import wait_until
3636

3737

3838
PORT = 50262

0 commit comments

Comments
 (0)