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 18
18
python : ' 3.5'
19
19
- env : TOXENV=py36
20
20
python : ' 3.6'
21
+ - env : TOXENV=docs
22
+ python : ' 3.6'
21
23
- env : TOXENV=py37
22
24
python : ' 3.7'
23
25
sudo : required
Original file line number Diff line number Diff line change 3
3
Changelog
4
4
=========
5
5
6
+ 0.13.0 (2018-09-29)
7
+ -------------------
6
8
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
+ -------------------
9
22
10
23
- ``pytest-flask `` now requires ``pytest>=3.6 `` (`#84 `_).
11
24
Original file line number Diff line number Diff line change 132
132
# Add any paths that contain custom static files (such as style sheets) here,
133
133
# relative to this directory. They are copied after the builtin static files,
134
134
# so a file named "default.css" will overwrite the builtin "default.css".
135
- html_static_path = ['_static' ]
135
+ # html_static_path = ['_static']
136
136
137
137
# Add any extra paths that contain custom files (such as robots.txt or
138
138
# .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:
230
230
231
231
232
232
``accept_any `` - :mimetype: `*/* ` accept header
233
- """"""""""""""""""""""""""""""""""""""""""""""
233
+ ``````````````````````````````````````````````
234
234
235
235
:mimetype: `*/* ` accept header suitable to use as parameter in ``client ``.
236
236
237
237
238
238
``accept_json `` - :mimetype: `application/json ` accept header
239
- """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
239
+ ````````````````````````````````````````````````````````````
240
240
241
241
:mimetype: `application/json ` accept header suitable to use as parameter in
242
242
``client ``.
243
243
244
244
245
245
``accept_jsonp `` - :mimetype: `application/json-p ` accept header
246
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
246
+ ```````````````````````````````````````````````````````````````
247
247
248
248
:mimetype: `application/json-p ` accept header suitable to use as parameter in
249
249
``client ``.
Original file line number Diff line number Diff line change @@ -31,10 +31,8 @@ commands =
31
31
32
32
[testenv:docs]
33
33
changedir = docs
34
- deps = -r../requirements/docs.txt
35
-
34
+ skipsdist = True
35
+ usedevelop = True
36
+ deps = -r requirements/docs.txt
36
37
commands =
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