Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit a5a4a31

Browse files
committed
Remove useless function
1 parent a2ce5a2 commit a5a4a31

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

tests/util.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -98,30 +98,6 @@ def belongs_to(self, non_symmetrical_json: dict[str, tuple[str, ...]]) -> bool:
9898
return self.file_name in non_symmetrical_json.get(self.test_name, ())
9999

100100

101-
def get_test_case_json_data(test_case_name: str, *json_file_names: str) -> list[TestCaseJsonFile]:
102-
"""
103-
:return:
104-
A list of all files found in "{inputs_path}/test_case_name" with names matching
105-
f"{test_case_name}.json" or f"{test_case_name}_*.json", OR given by
106-
json_file_names
107-
"""
108-
test_case_dir = inputs_path.joinpath(test_case_name)
109-
possible_file_paths = [
110-
*(test_case_dir.joinpath(json_file_name) for json_file_name in json_file_names),
111-
test_case_dir.joinpath(f"{test_case_name}.json"),
112-
*test_case_dir.glob(f"{test_case_name}_*.json"),
113-
]
114-
115-
result = []
116-
for test_data_file_path in possible_file_paths:
117-
if not test_data_file_path.exists():
118-
continue
119-
with test_data_file_path.open("r") as fh:
120-
result.append(TestCaseJsonFile(fh.read(), test_case_name, test_data_file_path.name.split(".")[0]))
121-
122-
return result
123-
124-
125101
def find_module(module: ModuleType, predicate: Callable[[ModuleType], bool]) -> ModuleType | None:
126102
"""
127103
Recursively search module tree for a module that matches the search predicate.

0 commit comments

Comments
 (0)