Spaces:
Sleeping
Sleeping
Download tests/conftest.py from Drac0528/CodeSecure: direct link, hf CLI and curl.
- Browser
- Download file 361 Bytes
-
https://huggingface.co/spaces/Drac0528/CodeSecure/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/Drac0528/CodeSecure/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/Drac0528/CodeSecure/resolve/main/tests/conftest.py
361 Bytes
| from __future__ import annotations | |
| import sys | |
| from pathlib import Path | |
| # Make package importable when tests are run from the workspace root, e.g.: | |
| # python -m pytest -q OpenEnv/envs/code_security_auditor_env/tests/test_grader_and_env.py | |
| _ENVS_DIR = Path(__file__).resolve().parents[2] | |
| if str(_ENVS_DIR) not in sys.path: | |
| sys.path.insert(0, str(_ENVS_DIR)) | |