Spaces:
Running
Running
unknown
Claude Opus 5.5
Accounts database kept off the storage mount and repaired at start; honest result when the AI score is not lowered
393219e Download tests/conftest.py from Rasheed/Test_AI_writing: direct link, hf CLI and curl.
- Browser
- Download file 470 Bytes
-
https://huggingface.co/spaces/Rasheed/Test_AI_writing/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/Rasheed/Test_AI_writing/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/Rasheed/Test_AI_writing/resolve/main/tests/conftest.py
470 Bytes
| """Fast unit tests: no model is downloaded or loaded (python -m pytest tests).""" | |
| import os | |
| import sys | |
| from pathlib import Path | |
| os.environ.setdefault("SKIP_MODEL_LOAD", "1") | |
| os.environ.setdefault("LT_MODE", "off") | |
| os.environ.setdefault("LEXSUB", "0") # no vocabulary model download during tests | |
| for k in ("GROQ_API_KEY", "GROQ_API_KEYS", "OPENAI_API_KEY"): | |
| os.environ.pop(k, None) | |
| sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) | |