Files
home-automation/tests/conftest.py
T

16 lines
244 B
Python
Raw Normal View History

2026-04-19 20:19:58 +02:00
import pytest
from fastapi.testclient import TestClient
from app.main import create_app
@pytest.fixture
def app():
return create_app()
@pytest.fixture
def client(app):
with TestClient(app) as test_client:
yield test_client