Skip to content
Myr

Fixed #1846

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by James Farrington · committed by James Farrington · parent 41f3d67 · Browse files · 2 files+10 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+10 added−1 removed

  • tests:+8 added−0 removed
  • other:+2 added−1 removed

2 files+10 added−1 removed

modified:tests/test_helpers.py+8 added
17 unmodified lines
18from werkzeug.exceptions import BadRequest19from werkzeug.http import parse_cache_control_header, parse_options_header20from werkzeug.http import http_date21from flask._compat import StringIO, text_type22try:23 import simplejson24except ImportError:25 import json as simplejson262728def has_encoding(name):29 try:
87 unmodified lines
117 rv = c.get(url)118 assert rv.mimetype == 'application/json'119 assert flask.json.loads(rv.data) == d120121 def test_simplejson_does_not_escape_slashes(self):122 """Test that \\/ is no longer standard behavior."""123 assert '\\/' not in simplejson.dumps('/')124125 def test_jsonify_dicts(self):126 """Test jsonify with dicts and kwargs unpacking."""127 d = dict(128 a=0, b=23, c=3.14, d='t', e='Hi', f=True, g=False,
619 unmodified lines
modified:tox.ini+2 added-1 removed
1[tox]2envlist = {py26,py27,pypy}-{lowest,release,devel}, {py33,py34,py35}-{release,devel}2envlist = {py26,py27,pypy}-{lowest,release,devel,simplejson}, {py33,py34,py35}-{release,devel,simplejson}34[testenv]5commands =6 py.test []
11 unmodified lines
18 devel: git+https://github.com/pallets/werkzeug.git19 devel: git+https://github.com/pallets/jinja.git20 devel: git+https://github.com/pallets/itsdangerous.git21 devel: git+https://github.com/jek/blinker.git22 simplejson: simplejson2324[testenv:docs]25deps = sphinx26commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck