Add Test Factory

This commit is contained in:
Alexander Hosking 2022-04-15 14:04:47 -04:00
parent 3b835ae0a9
commit c07fe7f8b8

9
tests/test_factory.py Normal file
View File

@ -0,0 +1,9 @@
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!'