David Lord
5965cb7e1c
rename to FLASK_SKIP_DOTENV, add docs, test
7 years ago
David Lord
310fbfcf64
revert copyright year to project start
...
add copyright header to files
7 years ago
David Lord
2beedabaaf
add HTTPS support for flask run command
7 years ago
David Lord
8bdf820e9b
reset standard os env after each test
7 years ago
Armin Ronacher
c23a63a185
Improved bad factory error handling
7 years ago
David Lord
5436dddf64
rewrite cli errors
...
consistent order for arguments to load functions
refactor find_app_by_string to flow better
more cli loader tests
7 years ago
David Lord
491d331e6e
load env vars using python-dotenv
7 years ago
David Lord
fb845b9032
allow local packages in FLASK_APP
...
don't require .py extension in FLASK_APP
add tests for nested package loading
parametrize cli loading tests
7 years ago
David Lord
448368e226
style cleanup
...
[ci skip]
8 years ago
Miguel Grinberg
7c40aa9e50
Import app from wsgi.py or app.py if FLASK_APP is not defined
...
Fixes #2376
8 years ago
Hendrik Makait
48c2925664
Factor in code review comments and refactor functions to be more naturally split.
8 years ago
Hendrik Makait
7106fb6357
Handle app factory with arguments in FLASK_APP
8 years ago
Christian Stade-Schuldt
4ec1fbc9f5
More DRYing up the test suite ( #2325 )
8 years ago
Hendrik Makait
ae41df9a77
Check if app factory takes script_info argument and call it with(out) script_info as an argument depending on that
8 years ago
Hendrik Makait
ced719ea18
Auto-detect create_app and make_app factory functions
8 years ago
David Lord
7ad79583b9
add sort by match order
...
sort by endpoint by default
combine sort flags
sort methods
ignore HEAD and OPTIONS methods by default
rearrange columns
use format to build row format string
rework tests
add changelog
8 years ago
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 )
8 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.
8 years ago
Kiss György
1b764cff93
Added runner fixture
9 years ago
Kiss György
b8e826c16b
Added tests, fixed some minor alignment problems.
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