Commit graph

553 commits

Author SHA1 Message Date
Armin Ronacher
1e81474e7e Do not enable subdomain matching by default
Updated tests for new subdomain matching
Added a test to validate matching behavior
2018-02-23 07:53:27 -08:00
David Lord
8d5c870199 add test_cli_runner for testing app.cli commands 2018-02-19 15:34:46 -08:00
David Lord
aa4db37a7f revert copyright year to project start
add copyright header to files
2018-02-08 12:43:30 -08:00
David Lord
f23e388b81 Merge pull request #2530 from pallets/feature/factory-detection
Improved bad factory error handling
2018-01-28 11:27:07 -08:00
David Lord
d08a0fab8e Merge pull request #2607 from FadhelC/SameSite-cookie-feature
Added support for cookie SameSite attribute
2018-01-23 15:20:16 -08:00
David Lord
e431e8809d clean up samesite docs 2018-01-23 15:11:50 -08:00
David Lord
b0e8e7d485 add HTTPS support for flask run command 2018-01-23 10:03:53 -08:00
Fadhel_Chaabane
c65bdc0c9f New Feature: Added Support for cookie's SameSite attribute. 2018-01-23 13:57:50 +00:00
David Lord
8dfb664336 reset standard os env after each test 2018-01-10 13:53:45 -08:00
Armin Ronacher
a1afc8f1a7 Add Support for FLASK_ENV (#2570)
This introduces environments to Flask
2018-01-06 17:07:56 +01:00
David Lord
57b2807ea8 improve documentation for session attributes
add test for session attributes
2018-01-04 12:56:18 -08:00
David Lord
1e9f49e586 use config fixture, get plugin via unregister 2017-12-14 12:20:03 -08:00
Camilo
29e76fbb22 restore the logging plugin only if it was active to begin with 2017-12-14 09:40:34 -05:00
Camilo
069a5e9bbd fix non-passing tests for logging on pytest > 3.3.0 2017-12-14 01:55:22 -05:00
Adrian Moennich
26cc8fba36 Fix broken test 2017-11-25 00:53:43 +01:00
Adrian Moennich
875c30bad1 Merge remote-tracking branch 'upstream/0.12-maintenance' 2017-11-25 00:44:07 +01:00
ThiefMaster
dd8adc11be Fix ValueError for some invalid Range requests
fixes #2526
2017-11-25 00:37:49 +01:00
Armin Ronacher
28e9f419f9 Improved bad factory error handling 2017-11-25 00:05:57 +01:00
David Lord
042948a4ad rewrite cli errors
consistent order for arguments to load functions
refactor find_app_by_string to flow better
more cli loader tests
2017-10-10 07:04:53 -07:00
Caratpine
48b19e8dd1 Blueprint view function name should not contain dots 2017-10-09 08:12:34 -07:00
Chuan Ma
f31297dfe3 pytest.yield_fixture deprecated in pytest 3.0+.
It's suggested to use pytest.fixture directly,
and flask already requires 'pytest>=3'.
2017-08-14 10:25:24 -04:00
David Lord
9acb1d2412 simplify logging configuration
single default handler and formatter
don't remove handlers
configure level once using setLevel
document logging
reorganize logging tests
2017-07-31 12:49:03 -07:00
David Lord
090560a53a prefer the url's scheme over the kwarg
tabs -> spaces
add test
add changelog
2017-07-29 13:03:08 -07:00
David Lord
f0101de17b load env vars using python-dotenv 2017-07-16 13:37:51 -07:00
David Lord
b4505e53a5 allow local packages in FLASK_APP
don't require .py extension in FLASK_APP
add tests for nested package loading
parametrize cli loading tests
2017-07-14 19:49:05 -07:00
David Lord
1a1fb4579d support passing environ to test client (#2412)
closes #2411
2017-07-13 08:42:53 -07:00
David Lord
19a9e95e8f clean up 2017-07-10 07:10:47 -07:00
Bijan Vakili
c1647f9468 Update documentation and regression tests to clarify that Flask.teardown_appcontext() only receives unhandled exceptions 2017-07-07 17:34:44 -07:00
William Horton
d404a911b7 Remove unused import from test_basic (#2403) 2017-06-30 17:28:48 +02:00
David Lord
d590d6024d clean up secret key docs
consistent key across docs and examples
consistent key across tests, set in conftest
2017-06-28 07:58:06 -07:00
David Lord
bffe2a0af9 un-deprecate request.json 2017-06-26 09:34:26 -07:00
David Lord
0207aad0ec remove deprecated flask.ext 2017-06-26 08:47:28 -07:00
David Lord
fc2b8aabde remove deprecated Request.module 2017-06-26 07:46:33 -07:00
David Lord
24cfe1b9b1 remove deprecated Flask.static_path 2017-06-26 07:45:29 -07:00
David Lord
b96a1c0f99 style cleanup
[ci skip]
2017-06-16 06:59:37 -07:00
Miguel Grinberg
ce78369f37 Import app from wsgi.py or app.py if FLASK_APP is not defined
Fixes #2376
2017-06-15 11:27:50 -07:00
Eugene M. Kim
015440ded5 Actually hand-spin and use a tzinfo subclass
This is for Python 2.x compatibility.

Suggested-by: David Lord <davidism@gmail.com>
2017-06-14 14:23:13 -07:00
Eugene M. Kim
fee894e9e8 Re-revert to not using pytz
Will spin a tzinfo subclass.
2017-06-14 14:14:18 -07:00
Eugene M. Kim
e8113c4b77 Skip aware datetime tests if pytz is unavailable 2017-06-14 14:08:42 -07:00
Eugene M. Kim
ed5ff89800 Use pytz again for tests
This is because datetime.timezone is Python 3 only.  The only
alternative would be to hand-spin a datetime.tzinfo subclass, an
overkill.

This reverts commit 0e6cab3576.
2017-06-14 13:57:40 -07:00
Eugene M. Kim
8df850cc9d Merge branch 'master' of github.com:pallets/flask into json_encode_non_utc_datetimes 2017-06-14 13:11:53 -07:00
Eugene M. Kim
45bfd49231 Rewrite test_jsonify_aware_datetimes without pytz 2017-06-14 13:06:26 -07:00
David Lord
96e7553f10 test no debug flag doesn't reconfigure
test templates_auto_reload property instead of config
use app fixture in test
2017-06-14 12:31:56 -07:00
Eugene M. Kim
8b3fb19a0a Add UTs for #2372
test_encode_aware_datetime() fails for non-UTC timezones due to the bug.
2017-06-14 12:22:09 -07:00
David Lord
0e1f7d5859 Merge branch 'master' into reload_templates_run_debug 2017-06-14 09:58:33 -07:00
David Lord
08c8401539 failing test 2017-06-05 06:14:13 -07:00
David Lord
ca0dbc87a9 clean up JSON code and docs 2017-06-04 11:44:00 -07:00
David Lord
1ed4062f8f Merge remote-tracking branch 'remotes/origin/master' into json-mixin 2017-06-04 09:42:39 -07:00
David Lord
f542c5f599 failing test for streaming session 2017-06-02 11:07:53 -07:00
David Lord
9c93ba2fa2 add tests for flask.json.tag 2017-06-02 10:01:30 -07:00