forked from orbit-oss/flask
Added _external support to url_for
This commit is contained in:
parent
a7266ffb90
commit
75461c1467
3 changed files with 7 additions and 1 deletions
|
|
@ -227,6 +227,8 @@ class BasicFunctionalityTestCase(unittest.TestCase):
|
|||
pass
|
||||
with app.test_request_context():
|
||||
assert flask.url_for('hello', name='test x') == '/hello/test%20x'
|
||||
assert flask.url_for('hello', name='test x', _external=True) \
|
||||
== 'http://localhost/hello/test%20x'
|
||||
|
||||
def test_custom_converters(self):
|
||||
from werkzeug.routing import BaseConverter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue