crowncode-backend / tests /conftest.py
Rthur2003's picture
feat: pytest fixture için Starlette test istemci için conftest.py eklendi
9c1c89a
Raw History Blame Contribute Delete
318 Bytes
"""Shared test fixtures for CrownCode backend tests."""
from __future__ import annotations
import pytest
from starlette.testclient import TestClient
from app.main import app
@pytest.fixture()
def client():
"""Create a test client for the FastAPI application."""
with TestClient(app) as c:
yield c