mirror of
https://github.com/lucaspalomodevelop/Party.git
synced 2026-03-13 16:14:36 +00:00
20 lines
260 B
Python
20 lines
260 B
Python
import pytest
|
|
from party import create_app
|
|
|
|
|
|
@pytest.fixture
|
|
def app():
|
|
app = create_app()
|
|
yield app
|
|
|
|
|
|
@pytest.fixture
|
|
def client(app):
|
|
client = app.test_client()
|
|
yield client
|
|
|
|
|
|
@pytest.fixture
|
|
def runner(app):
|
|
return app.test_cli_runner()
|