Skip to content

Commit ca279f6

Browse files
committed
fix utils rename
1 parent 57e0c9b commit ca279f6

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

pythonFiles/tests/pytestadapter/helpers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import subprocess
1010
import sys
1111
import threading
12-
import uuid
1312
from typing import Any, Dict, List, Optional, Tuple
1413

1514
script_dir = pathlib.Path(__file__).parent.parent.parent
@@ -138,8 +137,7 @@ def runner_with_cwd(
138137
env = os.environ.copy()
139138
env.update(
140139
{
141-
"TEST_UUID": str(uuid.uuid4()),
142-
"TEST_PORT": str(port),
140+
"TEST_RUN_PIPE": str(port),
143141
"PYTHONPATH": os.fspath(pathlib.Path(__file__).parent.parent.parent),
144142
}
145143
)

pythonFiles/unittestadapter/discovery.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# debugpy.breakpoint()
2020

2121
# If I use from utils then there will be an import error in test_discovery.py.
22-
from unittestadapter.utils import (
22+
from unittestadapter.pvsc_utils import (
2323
VSCodeUnittestError,
2424
build_test_tree,
2525
parse_unittest_args,
@@ -39,7 +39,6 @@ def discover_tests(
3939
The returned dict has the following keys:
4040
4141
- cwd: Absolute path to the test start directory;
42-
- uuid: UUID sent by the caller of the Python script, that needs to be sent back as an integrity check;
4342
- status: Test discovery status, can be "success" or "error";
4443
- tests: Discoverered tests if any, not present otherwise. Note that the status can be "error" but the payload can still contain tests;
4544
- error: Discovery error if any, not present otherwise.

pythonFiles/unittestadapter/execution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from testing_tools import process_json_util, socket_manager
2121
from typing_extensions import NotRequired
22-
from unittestadapter.utils import (
22+
from unittestadapter.pvsc_utils import (
2323
VSCodeUnittestError,
2424
parse_unittest_args,
2525
send_post_request,

0 commit comments

Comments
 (0)