Commit graph

5190 commits

Author SHA1 Message Date
Lowell Abbott
09a0d2ebd1 Re-order by semantic. Fix link on flask-talismand and re-word many concepts 2017-05-23 12:26:43 -07:00
David Lord
a037762781 Merge pull request #2311 from bovarysme/use-yield-syntax
Use the yield syntax in pytest's fixtures
2017-05-23 12:00:34 -07:00
David Lord
e206764955 Merge pull request #2314 from cerickson/errorhandler
Added support for generic HTTPException handlers on app and blueprints
2017-05-23 11:51:17 -07:00
kaveh
75f537fb87 Adds provide_automatic_options to Class-based Views 2017-05-23 11:51:13 -07:00
David Lord
cd593bf117 Merge pull request #2307 from neilvictorgrey/master
For Issue #2286: Update unittest references
2017-05-23 11:50:31 -07:00
David Lord
8858135043 Update testing.rst 2017-05-23 11:50:14 -07:00
Levi Roth
954d9ca0b8 Added documentation for PowerShell environment variables 2017-05-23 14:30:39 -04:00
David Lord
54a18a5e94 Merge pull request #2305 from sorech02/updating_contributing_rst
Updating contributing rst
2017-05-23 11:19:57 -07:00
David Lord
532ca2e089
reorganize git instructions 2017-05-23 11:18:48 -07:00
cerickson
361dba7e3a removed dupe text from merge 2017-05-23 10:49:01 -07:00
cerickson
48f7b9394c Merge branch 'errorhandler' of https://github.com/cerickson/flask into errorhandler 2017-05-23 10:46:56 -07:00
cerickson
4f815015b8 Added support for generic HTTPException handlers on app and blueprints
Error handlers are now returned in order of blueprint:code, app:code,
blueprint:HTTPException, app:HTTPException, None

Corresponding tests also added.

Ref issue #941, pr #1383, #2082, #2144
2017-05-23 10:45:42 -07:00
cerickson
637eae5489 Added support for generic HTTPException handlers on app and blueprints
Error handlers are now returned in order of blueprint:code, app:code,
blueprint:HTTPException, app:HTTPException, None

Corresponding tests also added.

Ref issue #941, pr #1383, #2082, #2144
2017-05-23 10:37:36 -07:00
Florian Sachs
668061a5fc Register errorhandlers for Exceptions
Allow a default errorhandler by registering
an errorhandler for HTTPException

tests included
2017-05-23 10:34:31 -07:00
bovarysme
5963cb5a51 Use the yield syntax in pytest's fixtures 2017-05-23 18:21:29 +02:00
Christopher Sorenson
2339f1f24e
making some updates to the CONTRIBUTING.rst 2017-05-23 08:56:27 -07:00
David Lord
c8e56d5807 Merge pull request #2303 from MikeTheReader/master
Added tests for make_response and get_debug_flag to improve coverage of helpers.py
2017-05-23 08:34:22 -07:00
MikeTheReader
7c882a457b Replace double quotes with single quotes 2017-05-23 07:59:53 -07:00
MikeTheReader
cd412b20dc Parameterize test_get_debug_flag 2017-05-23 07:51:57 -07:00
Lowell Abbott
ee7cb9d6b2 Suggest only one package, change the sourcecode block to none 2017-05-23 01:54:06 -07:00
Lowell Abbott
c47f4530a1 Erased duplicated links on title 2017-05-22 23:54:28 -07:00
Lowell Abbott
98b0f96a98 Fix typos, semantics and some other corrections 2017-05-22 23:48:35 -07:00
Andrey Kislyuk
11d2eec3ac Fix refactoring error in static_folder docstring (#2310) 2017-05-22 23:46:22 -07:00
Lowell Abbott
8459cedaa9 Add security headers notes 2017-05-22 20:52:02 -07:00
MikeTheReader
fd4a363657 Modifications based on review 2017-05-22 20:49:37 -07:00
Neil Grey
378a11f992 For Issue #2286: Updating test_flaskr to use yield inside fixture 2017-05-22 18:22:08 -07:00
Tully Rankin
65b61aa7c2 Added uWSGI and example usage to stand-alone WSGI containers documentation (#2302) 2017-05-22 18:08:40 -07:00
David Lord
5b96e00972 Merge pull request #2301 from dawran6/test-bp-request-process
Add coverage for Blueprint request process methods
2017-05-22 18:06:31 -07:00
Neil Grey
4e9d51b39b For Issue #2286: Fixing indenting of test_login_logout 2017-05-22 17:42:30 -07:00
Neil Grey
65fc888172 For Issue #2286: Replaces references to unittest in the documentation with pytest 2017-05-22 17:36:55 -07:00
Randy Liou
d8d712a0de Add coverage for Blueprint teardown request method
Test the following methods in the Blueprint object: teardown_request,
and teardown_app_request.
This PR increases the coverage of blueprint module by 3%.
2017-05-22 16:58:04 -07:00
Randy Liou
a690ae27a3 Add coverage for Blueprint request process methods
Add test to cover following methodss to the Blueprint object:
before_request, after_request, before_app_request,
before_app_first_request, after_app_request.
This PR increases the coverage of flask.blueprints by 6%.
2017-05-22 16:58:04 -07:00
MikeTheReader
6f49089a62 Added tests for make_response and get_debug_flag to improve coverage of helpers.py 2017-05-22 16:15:48 -07:00
David Lord
0c94908956 Merge pull request #2297 from HndrkMkt/#2265-auto-detect-create-app-function
Auto-detect create_app() in find_best_app() #2265
2017-05-22 16:13:27 -07:00
David Lord
01ddf54b87
adjust for loop style 2017-05-22 16:12:23 -07:00
David Lord
7ecdbcfa2b
show error if multiple Flask instances are detected
add changelog
2017-05-22 15:48:08 -07:00
David Lord
a693f22a5a Merge pull request #2299 from dawran6/test-bp-template_global
Add coverage for Blueprint.add_app_template_global
2017-05-22 15:29:46 -07:00
David Lord
99208f1512 Merge pull request #2300 from tullyrankin/resort-wsgi-deploy-docs
Moved WSGI Standalone first in deployment documentation
2017-05-22 15:28:43 -07:00
Tully Rankin
2b96052240 Moved mod_wsgi under uwsgi in TOC deployment docs. 2017-05-22 15:13:31 -07:00
Tully Rankin
d7d21f5559 Moved WSGI-Standalone above mod_wsgi in deployment documentation. 2017-05-22 14:48:24 -07:00
Randy Liou
7ce01ab9b4 Add coverage for Blueprint.add_app_template_global
This tests the Blueprint.add_app_template_global mothod, which internally
calls the Blueprint.app_template_global method. The methods are used to
registering a function to the jinja template environment.
This PR increases the test coverage for module flask.blueprint by 4%.
2017-05-22 14:33:58 -07:00
Hendrik Makait
b4eb6534d5 Remove unnecessary checks and reformat NoAppException messages 2017-05-22 14:26:00 -07:00
Anton Sarukhanov
4cd0299aff Merge branch 'master' into makecov 2017-05-22 14:14:40 -07:00
David Lord
e706b5e544 Merge pull request #2298 from dawran6/test-bp-context
Add coverage for Blueprints.(app_)context_processor
2017-05-22 14:01:59 -07:00
Randy Liou
136dbf7de0 Add coverage for Blueprints.(app_)context_processor
Test both context_processor and app_context_processor functions.
Two context parameters are added into the context: one added to
the blueprint locally; another added to the app globally. The test
asserts the behaviors in both blueprint scope and the app scope.
The coverage for flask.blueprints is increased by 3%.
2017-05-22 13:09:22 -07:00
David Lord
a0e38a8cf1 Merge pull request #2295 from dawran6/test-blueprints
Add coverage for Blueprint.app_errorhandler
2017-05-22 12:30:52 -07:00
Hendrik Makait
ced719ea18 Auto-detect create_app and make_app factory functions 2017-05-22 12:30:18 -07:00
David Lord
88b0213357 Merge pull request #2296 from tullyrankin/debugger-documentation-1625
Added reference and link to Werkzeug debugger documentation
2017-05-22 12:28:06 -07:00
Tully Rankin
50b73f967b Removed the version number out of the documenation link to Werkzeug. 2017-05-22 12:19:52 -07:00
Tully Rankin
409dd15c10 Added link to using Werkzeug debugger in quickstart documentation. 2017-05-22 12:14:52 -07:00