I just want the tutorial

This commit is contained in:
Jose Palazon 2024-09-06 00:18:20 +01:00
parent 2fec0b206c
commit 127440c727
235 changed files with 46 additions and 33059 deletions

12
tests/test_factory.py Normal file
View 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!"