Skip to content

Commit 1afbd61

Browse files
committed
Make tests a module, use absolute imports
1 parent ff73432 commit 1afbd61

14 files changed

Lines changed: 15 additions & 13 deletions

tests/durabletask/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT License.

tests/durabletask/entities/test_class_based_entities_e2e.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from durabletask import client, entities, task, worker
1313
from durabletask.testing import create_test_backend
1414

15-
from _port_utils import find_free_port
15+
from tests.durabletask._port_utils import find_free_port
1616

1717
PORT = find_free_port()
1818
HOST = f"localhost:{PORT}"

tests/durabletask/entities/test_entity_failure_handling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from durabletask import client, entities, task, worker
1313
from durabletask.testing import create_test_backend
1414

15-
from _port_utils import find_free_port
15+
from tests.durabletask._port_utils import find_free_port
1616

1717
PORT = find_free_port()
1818
HOST = f"localhost:{PORT}"

tests/durabletask/entities/test_function_based_entities_e2e.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from durabletask import client, entities, task, worker
1313
from durabletask.testing import create_test_backend
1414

15-
from _port_utils import find_free_port
15+
from tests.durabletask._port_utils import find_free_port
1616

1717
PORT = find_free_port()
1818
HOST = f"localhost:{PORT}"

tests/durabletask/extensions/history_export/test_activities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
)
3737
from durabletask.testing import create_test_backend
3838

39-
from _port_utils import find_free_port
39+
from tests.durabletask._port_utils import find_free_port
4040

4141
PORT = find_free_port()
4242
HOST = f"localhost:{PORT}"

tests/durabletask/extensions/history_export/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from durabletask.testing import create_test_backend
3636

3737
from ._test_helpers import wait_until
38-
from _port_utils import find_free_port
38+
from tests.durabletask._port_utils import find_free_port
3939

4040
PORT = find_free_port()
4141
HOST = f"localhost:{PORT}"

tests/durabletask/extensions/history_export/test_entity.py

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

3333
from ._test_helpers import wait_until
34-
from _port_utils import find_free_port
34+
from tests.durabletask._port_utils import find_free_port
3535

3636
PORT = find_free_port()
3737
HOST = f"localhost:{PORT}"

tests/durabletask/extensions/history_export/test_orchestrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from durabletask.testing import create_test_backend
3434

3535
from ._test_helpers import wait_until
36-
from _port_utils import find_free_port
36+
from tests.durabletask._port_utils import find_free_port
3737

3838
PORT = find_free_port()
3939
HOST = f"localhost:{PORT}"

tests/durabletask/test_batch_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from durabletask.testing import create_test_backend
1616
from durabletask.worker import TaskHubGrpcWorker
1717

18-
from _port_utils import find_free_port
18+
from tests.durabletask._port_utils import find_free_port
1919

2020
BATCH_TEST_PORT = find_free_port()
2121
HOST = f"localhost:{BATCH_TEST_PORT}"

tests/durabletask/test_large_payload_e2e.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from durabletask import client, task, worker
2323
from durabletask.testing import create_test_backend
2424

25-
from _port_utils import find_free_port
25+
from tests.durabletask._port_utils import find_free_port
2626

2727
# Skip the entire module if azure-storage-blob is not installed.
2828
azure_blob = pytest.importorskip("azure.storage.blob")

0 commit comments

Comments
 (0)