Get all .py test files in a path (file or directory).
(path: pathlib.Path)
| 122 | |
| 123 | |
| 124 | def get_test_files(path: pathlib.Path) -> list[pathlib.Path]: |
| 125 | """Get all .py test files in a path (file or directory).""" |
| 126 | if path.is_file(): |
| 127 | return [path] |
| 128 | return sorted(path.glob("**/*.py")) |
| 129 | |
| 130 | |
| 131 | def get_test_module_name(test_path: pathlib.Path) -> str: |