(example_lib)
| 217 | |
| 218 | @pytest.fixture(scope="module") |
| 219 | def kernel(example_lib) -> Kernel: |
| 220 | k = Kernel(example_lib) |
| 221 | import subprocess |
| 222 | from pathlib import Path |
| 223 | |
| 224 | sp = ( |
| 225 | subprocess.check_output( |
| 226 | ["lake", "env", "printenv", "LEAN_PATH"], |
| 227 | cwd=str(Path(__file__).parent / "lean"), |
| 228 | ) |
| 229 | .decode() |
| 230 | .strip() |
| 231 | ) |
| 232 | k.init_search(sp) |
| 233 | k.load(["Init", "LeanPy.Z3"]) |
| 234 | set_kernel(k) |
| 235 | return k |
| 236 | |
| 237 | |
| 238 | # ------------------------------------------------------------------ |
nothing calls this directly
no test coverage detected