test: add pytest test files (were missing from previous commit)

This commit is contained in:
bohd4nx
2026-03-05 04:18:55 +02:00
parent 5dc3cddf1a
commit f57f8271c3
4 changed files with 63 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import pytest
from app.core.cookies import load_cookies
from app.core.exceptions import CookiesError
@pytest.fixture
def cookies():
"""Load Fragment cookies, skip the test if they are unavailable."""
try:
return load_cookies()
except CookiesError as exc:
pytest.skip(f"Cookies unavailable — {exc}")