forked from orbit-oss/flask
Added tests, fixed some minor alignment problems.
This commit is contained in:
parent
1647179511
commit
b8e826c16b
3 changed files with 59 additions and 1 deletions
18
tests/test_apps/cliapp/routesapp.py
Normal file
18
tests/test_apps/cliapp/routesapp.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
from __future__ import absolute_import, print_function
|
||||
|
||||
from flask import Flask
|
||||
|
||||
|
||||
noroute_app = Flask('noroute app')
|
||||
simpleroute_app = Flask('simpleroute app')
|
||||
only_POST_route_app = Flask('GET route app')
|
||||
|
||||
|
||||
@simpleroute_app.route('/simpleroute')
|
||||
def simple():
|
||||
pass
|
||||
|
||||
|
||||
@only_POST_route_app.route('/only-post', methods=['POST'])
|
||||
def only_post():
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue