Nick Pope
fc6a1d9354
Fix default index for TaggedJSONSerializer.register()
...
Change the default value of ``index`` to ``None`` in ``register()`` so
that it is possible to insert a new tag as the penultimate item in the
order list.
7 years ago
David Lord
1ed756a523
add Response.max_cookie_size config
7 years ago
David Lord
ab4142215d
detect UTF encodings when loading json
7 years ago
fphonor
171eb28c95
get_json separate cache depending on silent arg
7 years ago
David Lord
5f42989ce3
don't use Flask(__name__) in conftest
7 years ago
David Lord
401423df06
only strip one slash when registering blueprint
...
add test and changelog
7 years ago
David Lord
82f0d120de
use subdomain arg in url_map.bind_to_environ
...
rename new subdomain test, parametrize
test allowing subdomains as well as ips
add subdomain_matching param to docs
add some references to docs
add version changed to create_url_adapter
7 years ago
Armin Ronacher
8cec2010c0
Do not enable subdomain matching by default
...
Updated tests for new subdomain matching
Added a test to validate matching behavior
7 years ago
David Lord
cf5525f98a
add test_cli_runner for testing app.cli commands
7 years ago
David Lord
310fbfcf64
revert copyright year to project start
...
add copyright header to files
7 years ago
David Lord
382b13581e
clean up samesite docs
7 years ago
David Lord
2beedabaaf
add HTTPS support for flask run command
7 years ago
Fadhel_Chaabane
a1d9ebe4ab
New Feature: Added Support for cookie's SameSite attribute.
7 years ago
David Lord
8bdf820e9b
reset standard os env after each test
7 years ago
Armin Ronacher
2433522d29
Add Support for FLASK_ENV ( #2570 )
...
This introduces environments to Flask
7 years ago
David Lord
0a33954555
improve documentation for session attributes
...
add test for session attributes
7 years ago
David Lord
604cc758fb
use config fixture, get plugin via unregister
7 years ago
Camilo
33fa580947
restore the logging plugin only if it was active to begin with
7 years ago
Camilo
e30c39fe78
fix non-passing tests for logging on pytest > 3.3.0
7 years ago
Adrian Moennich
777cc17de3
Fix broken test
7 years ago
ThiefMaster
c52e1b7388
Fix ValueError for some invalid Range requests
...
fixes #2526
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
Caratpine
2f57a0b917
Blueprint view function name should not contain dots
7 years ago
Chuan Ma
5888d76342
pytest.yield_fixture deprecated in pytest 3.0+.
...
It's suggested to use pytest.fixture directly,
and flask already requires 'pytest>=3'.
7 years ago
David Lord
66b1b752da
simplify logging configuration
...
single default handler and formatter
don't remove handlers
configure level once using setLevel
document logging
reorganize logging tests
7 years ago
David Lord
a89bdb3395
prefer the url's scheme over the kwarg
...
tabs -> spaces
add test
add changelog
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
59f7966e31
support passing environ to test client ( #2412 )
...
closes #2411
7 years ago
David Lord
9560f22bb6
clean up
7 years ago
Bijan Vakili
a417e41d27
Update documentation and regression tests to clarify that Flask.teardown_appcontext() only receives unhandled exceptions
7 years ago
William Horton
5909e26fba
Remove unused import from test_basic ( #2403 )
7 years ago
David Lord
465922e5f1
clean up secret key docs
...
consistent key across docs and examples
consistent key across tests, set in conftest
7 years ago
David Lord
5bc0d15359
un-deprecate request.json
7 years ago
David Lord
715a9a3e7b
remove deprecated flask.ext
7 years ago
David Lord
723e665004
remove deprecated Request.module
7 years ago
David Lord
d63c2bc417
remove deprecated Flask.static_path
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
Eugene M. Kim
63ccdada1b
Actually hand-spin and use a tzinfo subclass
...
This is for Python 2.x compatibility.
Suggested-by: David Lord <davidism@gmail.com>
8 years ago
Eugene M. Kim
f803760275
Re-revert to not using pytz
...
Will spin a tzinfo subclass.
8 years ago
Eugene M. Kim
34050630d6
Skip aware datetime tests if pytz is unavailable
8 years ago
Eugene M. Kim
eb9618347c
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
.
8 years ago
Eugene M. Kim
0e6cab3576
Rewrite test_jsonify_aware_datetimes without pytz
8 years ago
David Lord
4d2a3ab2e0
test no debug flag doesn't reconfigure
...
test templates_auto_reload property instead of config
use app fixture in test
8 years ago
Eugene M. Kim
d75d83defd
Add UTs for #2372
...
test_encode_aware_datetime() fails for non-UTC timezones due to the bug.
8 years ago
David Lord
5c12acefbb
failing test
8 years ago
David Lord
e97253e4c1
clean up JSON code and docs
8 years ago
David Lord
5978a0f55f
failing test for streaming session
8 years ago