Files
Lottery-Tracker/tests/conftest.py
2026-02-18 08:24:54 -05:00

22 lines
400 B
Python

"""Shared pytest fixtures for the Lottery Tracker test suite."""
from __future__ import annotations
import pytest
from app import create_app
@pytest.fixture()
def app():
"""Create a test Flask app."""
application = create_app()
application.config["TESTING"] = True
return application
@pytest.fixture()
def client(app):
"""Flask test client."""
return app.test_client()