(script_name: str)
| 15 | |
| 16 | |
| 17 | def load_module(script_name: str): |
| 18 | path = ROOT / 'scripts' / script_name |
| 19 | module_name = f'test_{path.stem}_{next(MODULE_COUNTER)}' |
| 20 | spec = importlib.util.spec_from_file_location(module_name, path) |
| 21 | if spec is None or spec.loader is None: |
| 22 | raise AssertionError(f'Unable to load module from {path}') |
| 23 | module = importlib.util.module_from_spec(spec) |
| 24 | spec.loader.exec_module(module) |
| 25 | return module |
| 26 | |
| 27 | |
| 28 | def make_agent_message(text: str) -> dict: |
no outgoing calls
no test coverage detected