Check if path is a test path (contains /Lib/test/ or starts with Lib/test/)
(path: pathlib.Path)
| 79 | |
| 80 | |
| 81 | def is_test_path(path: pathlib.Path) -> bool: |
| 82 | """Check if path is a test path (contains /Lib/test/ or starts with Lib/test/)""" |
| 83 | path_str = str(path).replace("\\", "/") |
| 84 | return "/Lib/test/" in path_str or path_str.startswith("Lib/test/") |
| 85 | |
| 86 | |
| 87 | def lib_to_test_path(src_path: pathlib.Path) -> pathlib.Path: |