forked from orbit-oss/flask
21 lines
401 B
Python
21 lines
401 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Larger App Tests
|
|
~~~~~~~~~~~~~~~~
|
|
|
|
:copyright: © 2010 by the Pallets team.
|
|
:license: BSD, see LICENSE for more details.
|
|
"""
|
|
|
|
from yourapplication import app
|
|
import pytest
|
|
|
|
@pytest.fixture
|
|
def client():
|
|
app.config['TESTING'] = True
|
|
client = app.test_client()
|
|
return client
|
|
|
|
def test_index(client):
|
|
rv = client.get('/')
|
|
assert b"Hello World!" in rv.data
|