David Lord
03d39490a3
Merge pull request #2324 from rzelayafavila/2313-refactor-gevent-tests-into-class
...
Fix for Issue 2313 - refactoring gevent tests into class
2017-05-23 17:31:44 -07:00
David Lord
f710fc6347
Merge pull request #2323 from dawran6/test-fixture
...
Cleanup test_blueprint.py to use test fixtures
2017-05-23 17:14:57 -07:00
David Lord
b2992d2d36
Merge pull request #2321 from dawran6/test-bp-url
...
Add test for Blueprint app-wide url processing
2017-05-23 17:14:23 -07:00
Rene A. Zelaya
8eeb3d8297
Correcting name of GreenletContextCopying test class (to start with 'Test'), making it extend object, and also having the test methods in it include 'self' as first argument.
2017-05-23 16:51:50 -07:00
Rene A. Zelaya
f6e3c14313
Merge remote-tracking branch 'pallets/master' into 2313-refactor-gevent-tests-into-class
2017-05-23 16:45:47 -07:00
Rene A. Zelaya
cb2c8a7b88
Bundling 'test_greenlet_context_copying' functions into a new class in tests/test_reqctx.py.
2017-05-23 16:45:11 -07:00
Randy Liou
b372260079
Cleanup test_blueprint.py to use test fixtures
...
Modify several tests to use the app and client test fixtures.
2017-05-23 16:42:14 -07:00
Randy Liou
a1e09231f5
Add test for Blueprint app-wide url processing
...
The test add coverage for methods: Blueprint.app_url_defaults, and
Blueprint.app_url_preprocessing. This PR increases the coverage of
blueprint module by 2%.
2017-05-23 16:26:53 -07:00
David Lord
f7f122cb29
Merge pull request #2319 from HndrkMkt/#2266-support-create-app-without-script-info
...
Support `create_app` without script_info or with script_info as named argument
2017-05-23 16:24:29 -07:00
David Lord
aed71abbbc
add changelog
...
[ci skip]
2017-05-23 16:24:07 -07:00
David Lord
d444045e49
Merge pull request #2320 from markshannon/fix-click-dependency-info
...
Update click dependency info.
2017-05-23 16:20:59 -07:00
David Lord
e37f705739
shorten cli factory name
...
[ci skip]
2017-05-23 16:19:41 -07:00
David Lord
f3be739855
add lowest click version to tox
...
add devel click version to tox
add devel markupsafe version to tox
2017-05-23 16:08:46 -07:00
David Lord
bc0b77809d
Merge pull request #2315 from leviroth/powershell-docs
...
Added documentation for PowerShell environment variables
2017-05-23 15:33:59 -07:00
Mark Shannon
50da045679
Update click dependency info.
2017-05-23 15:29:37 -07:00
Christian Stade-Schuldt
2158fe3e12
DRYing up the test suite using pytest fixtures ( #2306 )
...
* add fixtures to conftest.py
* use fixtures in test_appctx.py
* use fixtures in test_blueprints.py
* use fixtures in test_depreciations.py
* use fixtures in test_regressions.py
* use fixtures in test_reqctx.py
* use fixtures in test_templating.py
* use fixtures in test_user_error_handler.py
* use fixtures in test_views.py
* use fixtures in test_basics.py
* use fixtures in test_helpers.py
* use fixtures in test_testing.py
* update conftest.py
* make docstrings PEP-257 compliant
* cleanup
* switch dictonary format
* use pytest parameterization for test_json_as_unicode
2017-05-23 15:18:39 -07:00
Hendrik Makait
3d220155b9
Check if app factory takes script_info argument and call it with(out) script_info as an argument depending on that
2017-05-23 13:48:42 -07:00
David Lord
891862a94c
Merge pull request #2318 from bovarysme/fix-testing-docs
...
Fix a small oversight in the testing docs
2017-05-23 13:31:56 -07:00
bovarysme
34a921ca6e
Fix a small oversight in the testing docs
2017-05-23 22:22:16 +02:00
David Lord
f2a26657c3
Merge pull request #2316 from ka7eh/automatic-options-in-views
...
Adds provide_automatic_options to Class-based Views
2017-05-23 12:46:31 -07:00
David Lord
47717e5564
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
1a8a88660a
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
24fe84adab
Adds provide_automatic_options to Class-based Views
2017-05-23 11:51:13 -07:00
David Lord
18d7875f0b
Merge pull request #2307 from neilvictorgrey/master
...
For Issue #2286 : Update unittest references
2017-05-23 11:50:31 -07:00
David Lord
739f7fde70
Update testing.rst
2017-05-23 11:50:14 -07:00
Levi Roth
63d6106d87
Added documentation for PowerShell environment variables
2017-05-23 14:30:39 -04:00
David Lord
94062f8fe8
Merge pull request #2305 from sorech02/updating_contributing_rst
...
Updating contributing rst
2017-05-23 11:19:57 -07:00
David Lord
49f71c51cf
reorganize git instructions
2017-05-23 11:18:48 -07:00
cerickson
29e6e95c1f
removed dupe text from merge
2017-05-23 10:49:01 -07:00
cerickson
a002643fdb
Merge branch 'errorhandler' of https://github.com/cerickson/flask into errorhandler
2017-05-23 10:46:56 -07:00
cerickson
145d362587
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
d5324e45ba
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
1b691415be
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
e94527717e
Use the yield syntax in pytest's fixtures
2017-05-23 18:21:29 +02:00
Christopher Sorenson
71c487fded
making some updates to the CONTRIBUTING.rst
2017-05-23 08:56:27 -07:00
David Lord
739d099c15
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
e81deed87a
Replace double quotes with single quotes
2017-05-23 07:59:53 -07:00
MikeTheReader
87081acf0b
Parameterize test_get_debug_flag
2017-05-23 07:51:57 -07:00
Andrey Kislyuk
d82fce6ee0
Fix refactoring error in static_folder docstring ( #2310 )
2017-05-22 23:46:22 -07:00
MikeTheReader
3e42e38485
Modifications based on review
2017-05-22 20:49:37 -07:00
Neil Grey
b7b9fdf778
For Issue #2286 : Updating test_flaskr to use yield inside fixture
2017-05-22 18:22:08 -07:00
Tully Rankin
6fc1b1c7a6
Added uWSGI and example usage to stand-alone WSGI containers documentation ( #2302 )
2017-05-22 18:08:40 -07:00
David Lord
c6c133d348
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
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
Randy Liou
5152fa9b38
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
d4c1bfaa77
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
2c38769336
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
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