Files
epage/tests/__init__.py
Luke Tainton 8e8cb5c33e
All checks were successful
Snyk / security (push) Successful in 50s
Formatting
2025-06-22 22:25:48 +01:00

19 lines
307 B
Python

#!/usr/bin/env python3
"""PyTest unit tests."""
import os
import pytest
from app.app import app, csrf
@pytest.fixture
def client():
"""Set up Flask client for use in tests."""
app.secret_key = os.urandom(12).hex()
csrf.init_app(app)
web_client = app.test_client()
yield web_client