mirror of
https://github.com/lucaspalomodevelop/Party.git
synced 2026-03-13 00:07:21 +00:00
17 lines
262 B
Python
17 lines
262 B
Python
import pytest
|
|
from party.main 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()
|