(tool=None)
| 21 | scriptsdir = os.path.join(toolsdir, 'scripts') |
| 22 | |
| 23 | def skip_if_missing(tool=None): |
| 24 | if tool: |
| 25 | tooldir = os.path.join(toolsdir, tool) |
| 26 | else: |
| 27 | tool = 'scripts' |
| 28 | tooldir = scriptsdir |
| 29 | if not os.path.isdir(tooldir): |
| 30 | raise unittest.SkipTest(f'{tool} directory could not be found') |
| 31 | |
| 32 | @contextlib.contextmanager |
| 33 | def imports_under_tool(name, *subdirs): |
no test coverage detected
searching dependent graphs…