diff options
author | David Lord <davidism@gmail.com> | 2021-01-30 13:23:04 -0800 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2021-01-30 13:38:56 -0800 |
commit | be83e7e06cc3b1b72771be96502869c77970d39e (patch) | |
tree | 0f169e1d10f23e9dba77a02cca98bd76dd023c6d /tests | |
parent | d504e1d1e2798d7b4661462b9ef4cd77dd270ff9 (diff) | |
download | jinja2-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.py | 4 |
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">' |