cycles/tests/test_factory.py

9 lines
240 B
Python
Raw Normal View History

2022-04-15 18:04:47 +00:00
from period 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!'