kadai0308
0a52b6b78d
feat: support call template_filter without parens
2025-05-17 12:44:49 +08:00
David Lord
9c02f07f9b
deprecate markupsafe exports
2023-02-23 08:55:01 -08:00
David Lord
bfdd37110c
deprecate config attributes
2022-08-01 16:58:55 -07:00
pgjones
46433e9807
add generate_template and generate_template_string functions
2022-06-18 12:20:53 -07:00
David Lord
f2f027d1fb
remove unused module docstrings
2020-04-04 12:28:08 -07:00
David Lord
2ae740dd49
f-strings everywhere
2020-04-04 12:10:00 -07:00
David Lord
524fd0bc8c
apply pyupgrade
2020-04-04 12:10:00 -07:00
Grey Li
ef434ea998
Replace old pocoo links everywhere
...
pocco.org -> palletsprojects.com
2019-11-19 09:32:35 -08:00
David Lord
df470aecb9
use app.name as app.logger name
2019-07-01 14:56:18 -07:00
David Lord
1351d0a565
Merge branch '1.0.x'
2019-06-23 16:57:52 -07:00
David Lord
e666f7a69c
standardize license and copyright
2019-06-22 13:09:09 -07:00
David Lord
53c893b646
fix string concats left over by black
2019-06-01 09:22:20 -07:00
David Lord
43483683b2
apply reorder-python-imports pre-commit config
2019-06-01 09:07:20 -07:00
Jon S. Stumpf
b46f5942a5
address flake8 issues
2019-06-01 06:31:35 -07:00
David Baumgold
025589ee76
Reformat with black
...
https://github.com/python/black
2019-05-06 16:28:58 -04:00
David Lord
310fbfcf64
revert copyright year to project start
...
add copyright header to files
2018-02-08 12:43:30 -08:00
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
2017-07-31 12:49:03 -07:00
David Lord
465922e5f1
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
4d2a3ab2e0
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
David Lord
9e39c506e0
Merge branch 'master' into reload_templates_run_debug
2017-06-14 09:58:33 -07:00
Christian Stade-Schuldt
4ec1fbc9f5
More DRYing up the test suite ( #2325 )
2017-05-24 17:27:36 -07:00
Christian Stade-Schuldt
5b0b9717da
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
Dave Barker
1a67e284d0
Remove unnecessary werkzeug mock attribs from test
2016-06-15 02:25:48 +01:00
Dave Barker
24289e97af
Add test for new template auto reload debug behaviour
2016-06-15 02:15:33 +01:00
Alan Hamlett
99c99c4c16
Enable autoescape for `render_template_string`
2015-07-04 23:41:43 +02:00
Markus Unterwaditzer
d13a1b363e
Rename jinja_env_class
...
Inspired by #1056
2015-06-06 06:29:26 +02:00
ThiefMaster
08ac3aa4e3
Allow custom jinja environments
...
This is useful e.g. when using the new Jinja Environment
attributes added in mitsuhiko/jinja2#404
2015-04-06 15:03:00 +02:00
Parkayun
33534bb4a9
Happy New Year 2015
2015-01-02 11:35:00 +09:00
Markus Unterwaditzer
a1b273658d
Merge pull request #1222 from defuz/templates_auto_reload-eq-none
...
Set TEMPLATE_AUTO_RELOAD default value to None
2014-11-02 20:46:48 +01:00
Petr Zemek
ec3d5800f2
Put two spaces before inline comments when there is only one space.
...
PEP8 (E261) suggests to use at least two spaces before inline comments.
2014-10-27 11:24:15 +01:00
defuz
f88765d504
set TEMPLATE_AUTO_RELOAD default value to None
2014-10-26 18:28:12 +03:00
Markus Unterwaditzer
c6795eb626
Remove useless unittest imports
2014-09-21 16:47:38 +02:00
Markus Unterwaditzer
861aa0db1f
Init global test_apps explicitly
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
af4cb0ff2b
Remove flask superclass
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
d0cf5ef394
WIP
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
5da2c00419
Rewrite assertion methods
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
8fa5e32d9a
Tests pass now.
2014-09-11 22:09:50 +02:00
Markus Unterwaditzer
961db8ad72
Made tests recognizable
2014-09-11 22:09:50 +02:00