summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-01-30 13:23:04 -0800
committerDavid Lord <davidism@gmail.com>2021-01-30 13:38:56 -0800
commitbe83e7e06cc3b1b72771be96502869c77970d39e (patch)
tree0f169e1d10f23e9dba77a02cca98bd76dd023c6d /tests
parentd504e1d1e2798d7b4661462b9ef4cd77dd270ff9 (diff)
downloadjinja2-be83e7e06cc3b1b72771be96502869c77970d39e.tar.gz
update urlize docs, clean up code
move regexes near implementation commented verbose regex for http pattern renamed extra_uri_schemes to extra_schemes
Diffstat (limited to 'tests')
-rw-r--r--tests/test_filters.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_filters.py b/tests/test_filters.py
index bf00f06..c3ff8f3 100644
--- a/tests/test_filters.py
+++ b/tests/test_filters.py
@@ -373,10 +373,10 @@ class TestFilter:
"http://www.example.com/</a> bar"
)
- def test_urlize_extra_uri_schemes_parameter(self, env):
+ def test_urlize_extra_schemes_parameter(self, env):
tmpl = env.from_string(
'{{ "foo tel:+1-514-555-1234 ftp://localhost bar"|'
- 'urlize(extra_uri_schemes=["tel:", "ftp:"]) }}'
+ 'urlize(extra_schemes=["tel:", "ftp:"]) }}'
)
assert tmpl.render() == (
'foo <a href="tel:+1-514-555-1234" rel="noopener">'