Skip to content

Commit 35b4920

Browse files
committed
Tests: Remove unnecessary _all_cases from conftest
1 parent 48fa8ae commit 35b4920

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

tests/conftest.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,12 @@
3131
VMLINUX_AVAILABLE = False
3232

3333

34-
# ── shared fixture: collected test cases ───────────────────────────────────
35-
36-
37-
def _all_cases():
38-
return collect_all_test_files()
39-
40-
4134
# ── pytest_generate_tests: parametrize on bpf_test_file ───────────────────
4235

4336

4437
def pytest_generate_tests(metafunc):
4538
if "bpf_test_file" in metafunc.fixturenames:
46-
cases = _all_cases()
39+
cases = collect_all_test_files()
4740
metafunc.parametrize(
4841
"bpf_test_file",
4942
[c.path for c in cases],
@@ -55,7 +48,7 @@ def pytest_generate_tests(metafunc):
5548

5649

5750
def pytest_collection_modifyitems(items):
58-
case_map = {c.rel_path: c for c in _all_cases()}
51+
case_map = {c.rel_path: c for c in collect_all_test_files()}
5952

6053
for item in items:
6154
# Resolve the test case from the parametrize ID embedded in the node id.

0 commit comments

Comments
 (0)