Return a list of filenames of the example notebooks.
()
| 13 | |
| 14 | |
| 15 | def find_notebooks(): |
| 16 | """Return a list of filenames of the example notebooks.""" |
| 17 | path = os.path.dirname(__file__) |
| 18 | pattern = os.path.join(path, "..", "..", "docs", "**", "*.md") |
| 19 | files = glob.glob(pattern, recursive=True) |
| 20 | if files: |
| 21 | return files |
| 22 | else: |
| 23 | raise OSError("Could not find the notebooks") |
| 24 | |
| 25 | |
| 26 | @pytest.mark.parametrize("filepath", find_notebooks()) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…