MCPcopy Create free account
hub / github.com/Open-Quant/openquant / _load_exec_module

Function _load_exec_module

python/tests/test_notebook_execute_script.py:11–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10def _load_exec_module():
11 import importlib.util
12
13 script_path = REPO_ROOT / "notebooks" / "python" / "scripts" / "execute_notebook_cells.py"
14 spec = importlib.util.spec_from_file_location("openquant_nb_exec", script_path)
15 assert spec is not None and spec.loader is not None
16 module = importlib.util.module_from_spec(spec)
17 spec.loader.exec_module(module)
18 return module
19
20
21def test_execute_notebook_writes_to_explicit_output_path():
22 mod = _load_exec_module()

Calls

no outgoing calls

Tested by

no test coverage detected