Spaces:
Paused
Paused
Owner-only project library via HF OAuth; isolated 24h guest workspaces (server-side enforced)
6049960 verified Download tests/conftest.py from 2Btainment/absolution-omega: direct link, hf CLI and curl.
- Browser
- Download file 588 Bytes
-
https://huggingface.co/spaces/2Btainment/absolution-omega/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/2Btainment/absolution-omega/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/2Btainment/absolution-omega/resolve/main/tests/conftest.py
588 Bytes
| import time | |
| import pytest | |
| from app import access | |
| def legacy_owner_session(request, monkeypatch): | |
| """Pre-v0.10 tests expect projects directly under data_root: run them as the owner. | |
| Isolation itself is covered by test_access.py (real anonymous sessions).""" | |
| if request.module.__name__.endswith("test_access"): | |
| return | |
| monkeypatch.setattr(access.Sessions, "new_anonymous", | |
| lambda self: {"kind": "hf", "user": access.OWNER, "sid": "0" * 32, | |
| "exp": int(time.time()) + 3600}) | |