done: Test Coverage
This commit is contained in:
parent
5f1621ffd1
commit
fe35e21da6
7 changed files with 261 additions and 0 deletions
11
tests/test_factory.py
Normal file
11
tests/test_factory.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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