2018-02-09 14:39:05 -08:00
|
|
|
from flaskr import create_app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_config():
|
|
|
|
|
"""Test create_app without passing test config."""
|
|
|
|
|
assert not create_app().testing
|
2019-05-06 15:39:41 -04:00
|
|
|
assert create_app({"TESTING": True}).testing
|
2018-02-09 14:39:05 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_hello(client):
|
2019-05-06 15:39:41 -04:00
|
|
|
response = client.get("/hello")
|
|
|
|
|
assert response.data == b"Hello, World!"
|