squeaknode/tests/test_factory.py
2020-02-22 19:33:40 -08:00

12 lines
304 B
Python

from squeakserver import create_app
def test_config():
"""Test create_app without passing 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!"