Skip to content

Commit 5af2f61

Browse files
committed
formatting
1 parent 1d6dc6c commit 5af2f61

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

codeflash/discovery/pytest_new_process_discovery.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,22 @@ def parse_pytest_collection_results(pytest_tests: list[Any]) -> list[dict[str, s
1818
test_class = None
1919
if test.cls:
2020
test_class = test.parent.name
21-
test_results.append({
22-
"test_file": str(test.path),
23-
"test_class": test_class,
24-
"test_function": test.name
25-
})
21+
test_results.append({"test_file": str(test.path), "test_class": test_class, "test_function": test.name})
2622
return test_results
2723

2824

2925
class PytestCollectionPlugin:
3026
def pytest_collection_finish(self, session) -> None:
3127
global pytest_rootdir, collected_tests
32-
28+
3329
collected_tests.extend(session.items)
3430
pytest_rootdir = session.config.rootdir
35-
31+
3632
# Write results immediately since pytest.main() will exit after this callback, not always with a success code
3733
tests = parse_pytest_collection_results(collected_tests)
3834
with Path(pickle_path).open("wb") as f:
3935
import pickle
36+
4037
pickle.dump((0, tests, pytest_rootdir), f, protocol=pickle.HIGHEST_PROTOCOL)
4138

4239
def pytest_collection_modifyitems(self, items) -> None:

0 commit comments

Comments
 (0)