Spaces:
Running
Running
File size: 418 Bytes
8800c81 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import pytest
from fastapi.testclient import TestClient
from main import app
@pytest.fixture
def client():
"""Provides a TestClient instance for interacting with the FastAPI application."""
with TestClient(app) as test_client:
yield test_client
@pytest.fixture
def sandbox_headers():
"""Provides standard headers for local guest/sandbox mode."""
return {"Authorization": "Bearer sandbox"}
|