Skip to content
Myr

test_factory.py

This file

Path

examples/tutorial/tests/test_factory.py

12 lines · 298 bytes · Python

Last changed by

Not known.

History of this file

Take it

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

Merge pull request #3155 from zabbal/masterDavid Lordbefore adoptionc5c8bbc

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

Merge pull request #3155 from zabbal/masterDavid Lordbefore adoptionc5c8bbc

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!"