Skip to content
Myr

test_blueprintexample.py

This file

Path

examples/blueprintexample/test_blueprintexample.py

33 lines · 606 bytes · Python

Last changed by

Not known.

History of this file

Take it

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

Merge pull request #1378 from cbron/masterKeyan Pishdadianbefore adoption86e8267

lines 1–33why, one step back
1# -*- coding: utf-8 -*-
2"""3 Blueprint Example Tests4 ~~~~~~~~~~~~~~56 Tests the Blueprint example app7"""8import pytest910import blueprintexample111213@pytest.fixture14def client():15 return blueprintexample.app.test_client()161718def test_urls(client):19 r = client.get('/')20 assert r.status_code == 2002122 r = client.get('/hello')23 assert r.status_code == 2002425 r = client.get('/world')26 assert r.status_code == 2002728 # second blueprint instance29 r = client.get('/pages/hello')30 assert r.status_code == 2003132 r = client.get('/pages/world')33 assert r.status_code == 200