Spaces:
Running
Running
Download tests/conftest.py from iparaco/Virtual-LPU: direct link, hf CLI and curl.
- Browser
- Download file 651 Bytes
-
https://huggingface.co/spaces/iparaco/Virtual-LPU/resolve/refs%2Fpr%2F2/tests/conftest.py
- Command line
-
hf download hf://spaces/iparaco/Virtual-LPU@refs/pr/2/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/iparaco/Virtual-LPU/resolve/refs%2Fpr%2F2/tests/conftest.py
651 Bytes
| """Shared fixtures (delivered V7.1 suite).""" | |
| from __future__ import annotations | |
| import sys | |
| from pathlib import Path | |
| import pytest | |
| sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) | |
| import tempfile | |
| def config(tmp_path, monkeypatch): | |
| home = tmp_path / "lpu_home" | |
| home.mkdir() | |
| monkeypatch.setenv("LPU_HOME", str(home)) | |
| return { | |
| "server": {"host": "127.0.0.1", "port": 8710, "open_browser": False}, | |
| "accelerator": {"autostart": False}, | |
| "monitoring": {"interval_s": 0.2}, | |
| "training": {"attach": {"scan_interval_s": 0.2}}, | |
| "paths": {"lpu_home": str(home)}, | |
| } | |