mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 06:14:29 +00:00
14 lines
332 B
Python
14 lines
332 B
Python
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}")
|