Skip to content

Commit 9e02ee5

Browse files
committed
fix incorrect additions
1 parent 88382e0 commit 9e02ee5

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

python_files/vscode_pytest/__init__.py

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import pathlib
1111
import sys
1212
import traceback
13-
from typing import TYPE_CHECKING, Any, Dict, Generator, Literal, TypedDict, cast
13+
from typing import TYPE_CHECKING, Any, Dict, Generator, Literal, TypedDict
1414

1515
import pytest
1616

@@ -595,24 +595,9 @@ def build_test_tree(session: pytest.Session) -> TestNode:
595595
file_nodes_dict[os.fspath(parent_path)] = parent_test_case
596596
parent_test_case["children"].append(test_node)
597597
created_files_folders_dict: dict[str, TestNode] = {}
598-
for name, file_node in file_nodes_dict.items():
598+
for file_node in file_nodes_dict.values():
599599
# Iterate through all the files that exist and construct them into nested folders.
600600
root_folder_node: TestNode
601-
print(name)
602-
# import pytest_ruff
603-
604-
# if isinstance(name, pytest_ruff.RuffFile):
605-
# # if ruff file, get the other file node and add the ruff test to it
606-
# other = None
607-
# for key, value in file_nodes_dict.items():
608-
# if value == file_node and key != name:
609-
# other = value
610-
# break
611-
# if other is None:
612-
# raise ValueError(f"Could not find matching file node for {name}")
613-
# other.children.append(file_node.children[0])
614-
# break
615-
616601
try:
617602
root_folder_node: TestNode = build_nested_folders(
618603
file_node, created_files_folders_dict, session_node

0 commit comments

Comments
 (0)