Forward ported CLI tests from Flask-CLI and fixed a bug with the CLI's name. (#1806)

* Forward port the CLI tests from Flask-CLI.

* Make sure the parameter passed to the CLI's AppGroup is the app's name, not the app itself.
This commit is contained in:
Jannis Leidel 2016-05-16 19:36:55 +02:00 committed by Markus Unterwaditzer
parent 8011e1de28
commit 88500f5cc7
5 changed files with 149 additions and 1 deletions

View file

View file

@ -0,0 +1,5 @@
from __future__ import absolute_import, print_function
from flask import Flask
testapp = Flask('testapp')

View file

@ -0,0 +1,6 @@
from __future__ import absolute_import, print_function
from flask import Flask
app1 = Flask('app1')
app2 = Flask('app2')