Find the name of the cache-dir in the argument list
(args: list[str])
| 16 | |
| 17 | |
| 18 | def cache_dir(args: list[str]) -> None: |
| 19 | """Find the name of the cache-dir in the argument list""" |
| 20 | for i in range(0, len(args)): |
| 21 | if args[i] == "-o" and args[i + 1].startswith("cache_dir"): |
| 22 | return args[i + 1].split("=")[1] |
| 23 | break |
| 24 | return ".pytest_cache" |
| 25 | |
| 26 | |
| 27 | if __name__ == "__main__": |
no outgoing calls
no test coverage detected
searching dependent graphs…