File tree Expand file tree Collapse file tree 5 files changed +25
-12
lines changed Expand file tree Collapse file tree 5 files changed +25
-12
lines changed Original file line number Diff line number Diff line change 1818 python : ' 3.5'
1919 - env : TOXENV=py36
2020 python : ' 3.6'
21+ - env : TOXENV=docs
22+ python : ' 3.6'
2123 - env : TOXENV=py37
2224 python : ' 3.7'
2325 sudo : required
Original file line number Diff line number Diff line change 33Changelog
44=========
55
6+ 0.13.0 (2018-09-29)
7+ -------------------
68
7- 0.12.0 (2018-09-06, compared to 0.10.0)
8- ---------------------------------------
9+ - ``JSONReponse `` now supports comparison directly with status codes:
10+
11+ .. code-block :: python
12+
13+ assert client.get(' invalid-route' , headers = [(' Accept' , ' application/json' )]) == 404
14+
15+ Thanks `@dusktreader `_ for the PR (`#86 `_).
16+
17+ .. _@dusktreader : https://github.com/dusktreader
18+ .. _#86 : https://github.com/pytest-dev/pytest-flask/pull/86
19+
20+ 0.12.0 (2018-09-06)
21+ -------------------
922
1023- ``pytest-flask `` now requires ``pytest>=3.6 `` (`#84 `_).
1124
Original file line number Diff line number Diff line change 132132# Add any paths that contain custom static files (such as style sheets) here,
133133# relative to this directory. They are copied after the builtin static files,
134134# so a file named "default.css" will overwrite the builtin "default.css".
135- html_static_path = ['_static' ]
135+ # html_static_path = ['_static']
136136
137137# Add any extra paths that contain custom files (such as robots.txt or
138138# .htaccess) here, relative to this directory. These files are copied
Original file line number Diff line number Diff line change @@ -230,20 +230,20 @@ provides an easy way to test content negotiation in your application:
230230
231231
232232 ``accept_any `` - :mimetype: `*/* ` accept header
233- """"""""""""""""""""""""""""""""""""""""""""""
233+ ``````````````````````````````````````````````
234234
235235:mimetype: `*/* ` accept header suitable to use as parameter in ``client ``.
236236
237237
238238``accept_json `` - :mimetype: `application/json ` accept header
239- """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
239+ ````````````````````````````````````````````````````````````
240240
241241:mimetype: `application/json ` accept header suitable to use as parameter in
242242``client ``.
243243
244244
245245``accept_jsonp `` - :mimetype: `application/json-p ` accept header
246- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
246+ ```````````````````````````````````````````````````````````````
247247
248248:mimetype: `application/json-p ` accept header suitable to use as parameter in
249249``client ``.
Original file line number Diff line number Diff line change @@ -31,10 +31,8 @@ commands =
3131
3232[testenv:docs]
3333changedir = docs
34- deps = -r../requirements/docs.txt
35-
34+ skipsdist = True
35+ usedevelop = True
36+ deps = -r requirements/docs.txt
3637commands =
37- make html
38-
39- whitelist_externals =
40- /usr/bin/make
38+ sphinx-build -W -b html . _build
You can’t perform that action at this time.
0 commit comments