Spaces:
Sleeping
Sleeping
Download plugins/_commands/tests/conftest.py from Leon4gr45/openoperator: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/plugins/_commands/tests/conftest.py
- Command line
-
hf download hf://spaces/Leon4gr45/openoperator/plugins/_commands/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/plugins/_commands/tests/conftest.py
400 Bytes
| # tests/conftest.py | |
| import sys | |
| from pathlib import Path | |
| # Ensure A0 framework root is first in sys.path so that | |
| # `from helpers import ...` resolves to A0's helpers/, not | |
| # the Commands plugin's local helpers/ directory. | |
| a0_root = str(Path(__file__).resolve().parents[3]) # tests/ → _commands → plugins → a0 | |
| while a0_root in sys.path: | |
| sys.path.remove(a0_root) | |
| sys.path.insert(0, a0_root) | |