Ed Brannin
6e5250ab5d
Fix CLI test for ImportError -> NoAppException
8 years ago
Sven-Hendrik Haase
ed17bc1710
Add test to showcase that printing a traceback works
8 years ago
Paul Brown
0832e77b14
prevent NoAppException when ImportError occurs within imported module
8 years ago
Anton Sarukhanov
9121e109bd
Add test for get_version (CLI) ( #1884 )
8 years ago
Nate Prewitt
0f1cf50f97
adding in try around __import__ to catch invalid files/paths ( #1950 )
9 years ago
Hyunchel Kim
f19d3bd67e
Enhance tests.test_cli.test_find_best_app ( #1882 )
...
This commit adds a test case for `test_find_best_app` where
Module object does not contain Flask application.
Also cleans the function little bit to provides more meaningful comment.
9 years ago
Anton Sarukhanov
5eaed37116
Add test for find_default_import_path
9 years ago
Hyunchel Kim
64a37bb9b7
Test side effect ( #1889 )
...
Function `prepare_exec_for_file` has a side effect where a path is added to
`sys.path` list.
This commit enhances an exisiting test case for `prepare_exec_for_file`
by testing the side effect of the function and adding necessary
comments.
9 years ago
Josiah Philipsen
41e08f4ccd
fixed unmatched elif
...
Also update relevant test
9 years ago
jphilipsen05
fe5f714026
fixed unmatched elif ( #1872 )
9 years ago
Armin Ronacher
523e271183
Implemented simplified CLI interface
9 years ago
dataforger
92f63a1c1d
fix docstring ( #1818 )
...
change string to docstring
9 years ago
Jannis Leidel
88500f5cc7
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.
9 years ago