Merge pull request #614 from mizhi/master
Minor fix to views.py testsuite.
This commit is contained in:
commit
f06c80a215
2 changed files with 1 additions and 3 deletions
|
|
@ -295,8 +295,6 @@ def url_for(endpoint, **values):
|
||||||
values['_method'] = method
|
values['_method'] = method
|
||||||
return appctx.app.handle_url_build_error(error, endpoint, values)
|
return appctx.app.handle_url_build_error(error, endpoint, values)
|
||||||
|
|
||||||
rv = url_adapter.build(endpoint, values, method=method,
|
|
||||||
force_external=external)
|
|
||||||
if anchor is not None:
|
if anchor is not None:
|
||||||
rv += '#' + url_quote(anchor)
|
rv += '#' + url_quote(anchor)
|
||||||
return rv
|
return rv
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,13 @@
|
||||||
:copyright: (c) 2011 by Armin Ronacher.
|
:copyright: (c) 2011 by Armin Ronacher.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
from __future__ import with_statement
|
||||||
import flask
|
import flask
|
||||||
import flask.views
|
import flask.views
|
||||||
import unittest
|
import unittest
|
||||||
from flask.testsuite import FlaskTestCase
|
from flask.testsuite import FlaskTestCase
|
||||||
from werkzeug.http import parse_set_header
|
from werkzeug.http import parse_set_header
|
||||||
|
|
||||||
|
|
||||||
class ViewTestCase(FlaskTestCase):
|
class ViewTestCase(FlaskTestCase):
|
||||||
|
|
||||||
def common_test(self, app):
|
def common_test(self, app):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue