algospaced-dsa / tests /conftest.py
iamfebin's picture
feat: initial commit for AlgoSpaced DSA Review
8800c81
Raw History Blame Contribute Delete
418 Bytes
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"}