Add Test Factory
This commit is contained in:
parent
3b835ae0a9
commit
c07fe7f8b8
9
tests/test_factory.py
Normal file
9
tests/test_factory.py
Normal 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!'
|
Loading…
Reference in New Issue
Block a user