I just want the tutorial
This commit is contained in:
parent
2fec0b206c
commit
127440c727
235 changed files with 46 additions and 33059 deletions
12
tests/test_factory.py
Normal file
12
tests/test_factory.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from flaskr import create_app
|
||||
|
||||
|
||||
def test_config():
|
||||
"""Test create_app without passing 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