Spaces:
Sleeping
Sleeping
Download conftest.py from joytheslothh/MediRAG-API: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/joytheslothh/MediRAG-API/resolve/main/conftest.py
- Command line
-
hf download hf://spaces/joytheslothh/MediRAG-API/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/joytheslothh/MediRAG-API/resolve/main/conftest.py
438 Bytes
| """ | |
| conftest.py — project root | |
| Ensures src/ is on the Python path so all test files can import from src.* | |
| without needing PYTHONPATH to be set manually. (SRS Section 17) | |
| """ | |
| import sys | |
| import os | |
| # Add the src/ directory to path so `from modules.faithfulness import ...` works | |
| sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src")) | |
| # Also add project root so `import src` works | |
| sys.path.insert(0, os.path.dirname(__file__)) | |