COSCUP-ap-demo/tests/conftest.py
SouthFox d015451e55
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
[lint] fix lint
2023-06-08 16:54:36 +08:00

17 lines
283 B
Python

#!/usr/bin/env python3
"""Build test fixture"""
import pytest
from app import app as flask_app
@pytest.fixture(name="app")
def fixture_app():
"""Build flask app"""
yield flask_app
@pytest.fixture
def client(app):
"""Build test client"""
return app.test_client()