18 lines
298 B
Python
18 lines
298 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)
|
|
client = app.test_client()
|
|
yield client
|