mirror of
https://github.com/mblanke/Lottery-Tracker.git
synced 2026-03-01 14:10:22 -05:00
22 lines
400 B
Python
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()
|