Skip to content

Commit 98373ca

Browse files
refactor: streamline notebook collection in test suite to collect all .ipynb files in doc/tutorials
1 parent 15ac613 commit 98373ca

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

tests/test_tutorials.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,9 @@ def _find_tutorial_notebooks():
1616
if not root.exists():
1717
pytest.skip(f"Tutorials folder not found: {root}")
1818

19-
# Collect notebooks from the tutorials root (recursive).
20-
notebooks = set(root.rglob("*.ipynb"))
19+
# Collect all notebooks under doc/tutorials (including any subfolders).
20+
notebooks = sorted(set(root.rglob("*.ipynb")))
2121

22-
# Also explicitly include notebooks under an "advanced_tutorials" subfolder
23-
# (in case they are separate or not picked up for some layouts). Use a set
24-
# to deduplicate if the subfolder is already part of the root search.
25-
advanced = root / "advanced_tutorials"
26-
if advanced.exists():
27-
notebooks.update(advanced.rglob("*.ipynb"))
28-
29-
notebooks = sorted(notebooks)
3022
if not notebooks:
3123
pytest.skip(f"No tutorial notebooks found in: {root}")
3224
return notebooks

0 commit comments

Comments
 (0)