summaryrefslogtreecommitdiffstats
path: root/tests/test_factory.py
blob: 024c19a1f1d3424f525d21f40611061a695dc9fe (plain)
1
2
3
4
5
6
7
8
9
10
11
from flaskr import create_app


def test_config():
    assert not create_app().testing
    assert create_app({'TESTING': True}).testing


def test_hello(client):
    response = client.get('/hello')
    assert response.data == b'Hello, World!'