Minimum viable product
This commit is contained in:
commit
40e347616f
24 changed files with 748 additions and 0 deletions
10
tests/test_factory.py
Normal file
10
tests/test_factory.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from flaskr 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…
Add table
Add a link
Reference in a new issue