(image_dir: Path)
| 96 | |
| 97 | |
| 98 | def _sorted_image_paths(image_dir: Path) -> list[Path]: |
| 99 | if not image_dir.is_dir(): |
| 100 | return [] |
| 101 | return sorted( |
| 102 | [path for path in image_dir.iterdir() if path.is_file() and path.suffix.lower() in _IMAGE_SUFFIXES], |
| 103 | key=lambda path: _final_execution_sort_key(path.name), |
| 104 | ) |
| 105 | |
| 106 | |
| 107 | def _discover_latest_run_screenshots( |
no test coverage detected