Commit graph

2822 commits

Author SHA1 Message Date
Neil Grey
b7b9fdf778 For Issue #2286: Updating test_flaskr to use yield inside fixture 2017-05-22 18:22:08 -07:00
Neil Grey
2318b4e1ae For Issue #2286: Fixing indenting of test_login_logout 2017-05-22 17:42:30 -07:00
Neil Grey
eb8e4e0537 For Issue #2286: Replaces references to unittest in the documentation with pytest 2017-05-22 17:36:55 -07:00
David Lord
28c8a78baf 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
6ca71eaec7 adjust for loop style 2017-05-22 16:12:23 -07:00
David Lord
c135c3be4f show error if multiple Flask instances are detected
add changelog
2017-05-22 15:48:08 -07:00
David Lord
4205857bb4 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
eff7c4f271 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
089c8cdc00 Moved mod_wsgi under uwsgi in TOC deployment docs. 2017-05-22 15:13:31 -07:00
Tully Rankin
d6254174c3 Moved WSGI-Standalone above mod_wsgi in deployment documentation. 2017-05-22 14:48:24 -07:00
Randy Liou
5a5de52ab0 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
dd947d25a2 Remove unnecessary checks and reformat NoAppException messages 2017-05-22 14:26:00 -07:00
David Lord
6a91f8443d 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
19d33ecfa7 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
57185ddccd Merge pull request #2295 from dawran6/test-blueprints
Add coverage for Blueprint.app_errorhandler
2017-05-22 12:30:52 -07:00
Hendrik Makait
91633c21ec Auto-detect create_app and make_app factory functions 2017-05-22 12:30:18 -07:00
David Lord
c443f2c312 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
88e880ed42 Removed the version number out of the documenation link to Werkzeug. 2017-05-22 12:19:52 -07:00
Tully Rankin
1a3a9dcefb Added link to using Werkzeug debugger in quickstart documentation. 2017-05-22 12:14:52 -07:00
Randy Liou
158290e3b0 Add coverage for Blueprint.app_errorhandler
This test case registers an application-wise error handler from
a Blueprint. Verifies the error handler by aborting the flask app
from the application itself as well as from another registered
Blueprint.
2017-05-22 12:00:04 -07:00
David Lord
7b58262372 Merge pull request #2293 from tullyrankin/debug-mode-2261
Debug mode 2261
2017-05-22 11:43:57 -07:00
Tully Rankin
b48d7e1231 Updated request context documentation. 2017-05-22 11:28:58 -07:00
Tully Rankin
3cf6c45d40 Updated documentation. Replaced term development mode with debug mode. #2261 2017-05-22 11:25:02 -07:00
David Lord
cc133917ba Merge pull request #2288 from davidism/vary-cookies
Set "Vary: Cookie" header when session is accessed
2017-05-20 13:45:48 -07:00
David Lord
298bcfaeb6 set session accessed for setdefault 2017-05-20 13:00:17 -07:00
David Lord
c7b66249c0 reorder session cookie checks to deleted, accessed, modified 2017-05-20 12:11:37 -07:00
David Lord
409c8799d4 Merge branch 'master' into vary-cookies 2017-05-19 09:44:06 -07:00
Markus Unterwaditzer
6ec5ac101c Merge branch '0.12-maintenance' 2017-05-16 08:40:31 +02:00
Markus Unterwaditzer
694af5346a Bump to dev version 2017-05-16 08:40:08 +02:00
Markus Unterwaditzer
8ef0f3900a Bump version number to 0.12.2 2017-05-16 08:39:30 +02:00
Markus Unterwaditzer
0bc80c1978 Release 0.12.2 2017-05-16 08:39:28 +02:00
Markus Unterwaditzer
2118644240 Merge branch '0.12-maintenance' 2017-05-16 08:34:53 +02:00
David Lord
935acefaf2 safe_join on Windows uses posixpath
fixes #2033
closes #2059
2017-05-16 08:34:37 +02:00
David Lord
5db26a894d Merge pull request #2284 from davidism/windows-safe_join
safe_join on Windows uses posixpath
2017-05-15 17:11:34 -07:00
David Lord
9ada22dd94 safe_join on Windows uses posixpath
fixes #2033
closes #2059
2017-05-15 16:58:01 -07:00
David Lord
eee3feecc2 Merge pull request #2055 from geoffreybauduin/celery-documentation
Updated Celery pattern
2017-05-15 12:41:13 -07:00
David Lord
f8273fe496 explain when to use a task queue
remove deprecated abstract attr from celery
add explanation of example task
[ci skip]
2017-05-15 12:40:09 -07:00
David Lord
616bbaae4e Merge branch 'master' into celery-documentation 2017-05-15 12:17:09 -07:00
David Lord
5fb00d369a Merge pull request #2282 from davidism/session-cookie-domain
Refactor session cookie domain
2017-05-13 22:13:53 -07:00
David Lord
9c7e73e955 refactor session cookie domain logic
cache result of session cookie domain
add warnings for session cookie domain issues
add changelog
2017-05-13 21:59:00 -07:00
José Oliveira
aea3c48d80 show warning if session cookie domain is ip
closes #2007
2017-05-13 21:47:43 -07:00
David Lord
715360d86a Merge pull request #2279 from davidism/docs-after_this_request
Clean up deferred callback doc
2017-05-11 22:50:29 -07:00
David Lord
93341b9e7d clean up deferred callback doc
remove doc about writing after_this_request
[ci skip]
2017-05-11 22:48:21 -07:00
David Lord
e43755669c Merge pull request #1965 from vioan/master
Added a missing module to import statement
2017-05-11 22:38:36 -07:00
David Lord
722093b70e Merge pull request #2277 from jlara310/master
Improve quickstart's Routing section
2017-05-11 22:32:00 -07:00
David Lord
35428d04a8 wrap lines
tighten up wording
remove any converter from quickstart
use correct rst code syntax
2017-05-11 22:31:19 -07:00
David Lord
df0aff5291 Merge pull request #2278 from davidism/installation-docs
Rewrite installation docs
2017-05-11 14:37:31 -07:00
David Lord
78a4f53a24 rewrite installation docs
discuss python version
discuss all dependencies
prefer python 3 in instructions
[ci skip]
2017-05-11 14:34:09 -07:00
David Lord
9f5cb930f6 Update CONTRIBUTING.rst
basic pytest can't handle examples, pass tests dir
2017-05-11 12:35:03 -07:00
Xephyr826
49e263937a Improve Routing section
Edited the entire section for clarity and concision. I rewrote sentences
to make them shorter and to reduce ambiguity.

Added a code sample to show the path converter type

Removed the HTTP method overview. Although it was well written, the
overview wasn't necessary in the quickstart. Readers can easily find an
overview elsewhere.
2017-05-10 22:38:22 -07:00