mirror of
https://github.com/lucaspalomodevelop/Party.git
synced 2026-03-18 10:14:42 +00:00
17 lines
257 B
Python
17 lines
257 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()
|