20 lines
434 B
Python
20 lines
434 B
Python
import pytest
|
|
from flask import Flask
|
|
|
|
from accounts import accounts
|
|
|
|
from .config import TestConfig
|
|
|
|
@pytest.fixture(scope="module")
|
|
def accounts_app():
|
|
accounts_app = Flask(__name__, template_folder='templates')
|
|
accounts_app.register_blueprint(accounts)
|
|
accounts_app.config.from_object(TestConfig)
|
|
|
|
yield accounts_app
|
|
|
|
@pytest.fixture(scope="module")
|
|
def client(accounts_app):
|
|
return accounts_app.test_client()
|
|
|