Get the last git commit date for a test's files.
(
test_name: str, cpython_prefix: str, lib_prefix: str
)
| 1237 | |
| 1238 | |
| 1239 | def get_test_last_updated( |
| 1240 | test_name: str, cpython_prefix: str, lib_prefix: str |
| 1241 | ) -> str | None: |
| 1242 | """Get the last git commit date for a test's files.""" |
| 1243 | cpython_path = _get_cpython_test_path(test_name, cpython_prefix) |
| 1244 | if cpython_path is None: |
| 1245 | return None |
| 1246 | local_path = _get_local_test_path(cpython_path, lib_prefix) |
| 1247 | if not local_path.exists(): |
| 1248 | return None |
| 1249 | return _lookup_last_updated([str(local_path)], lib_prefix) |
| 1250 | |
| 1251 | |
| 1252 | def get_test_dependencies( |
no test coverage detected