Skip to content
Myr

test_factory.py

This file

Path

examples/tutorial/tests/test_factory.py

12 lines · 298 bytes · Python

Last changed by

Merge pull request #3183 from singingwolfboy/pre-commitDavid Baumgoldbefore adoption1dda032

History of this file

Take it

The walk stopped after 200 commits: lines older than 21b0aa6 point at it.

Add prefix for all commands in documentation (#2877)Grey Libefore adoption21b0aa6

lines 1–6why, one step back
1from flaskr import create_app
234def test_config():5 """Test create_app without passing test config."""6 assert not create_app().testing

Merge pull request #3183 from singingwolfboy/pre-commitDavid Baumgoldbefore adoption1dda032

line 7why, one step back
7 assert create_app({"TESTING": True}).testing

Add prefix for all commands in documentation (#2877)Grey Libefore adoption21b0aa6

lines 8–10why, one step back
8
910def test_hello(client):

Merge pull request #3183 from singingwolfboy/pre-commitDavid Baumgoldbefore adoption1dda032

lines 11–12why, one step back
11 response = client.get("/hello")
12 assert response.data == b"Hello, World!"