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:
parent
8011e1de28
commit
88500f5cc7
5 changed files with 149 additions and 1 deletions
0
tests/test_apps/cliapp/__init__.py
Normal file
0
tests/test_apps/cliapp/__init__.py
Normal file
5
tests/test_apps/cliapp/app.py
Normal file
5
tests/test_apps/cliapp/app.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from __future__ import absolute_import, print_function
|
||||
|
||||
from flask import Flask
|
||||
|
||||
testapp = Flask('testapp')
|
||||
6
tests/test_apps/cliapp/multiapp.py
Normal file
6
tests/test_apps/cliapp/multiapp.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from __future__ import absolute_import, print_function
|
||||
|
||||
from flask import Flask
|
||||
|
||||
app1 = Flask('app1')
|
||||
app2 = Flask('app2')
|
||||
Loading…
Add table
Add a link
Reference in a new issue