File size: 318 Bytes
46c1e33
 
 
 
 
36c6633
46c1e33
 
 
 
 
36c6633
46c1e33
36c6633
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""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