File: disable-response-handler.yaml

package info (click to toggle)
python-gabbi 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 972 kB
  • sloc: python: 3,788; makefile: 62; sh: 35
file content (22 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Test that disabling the response handler despite an accept match
# works as required.

tests:

- name: get some not json fail
  desc: This will cause an error, presented as a test failure
  xfail: True
  GET: /notjson
  response_headers:
    content-type: application/json
  response_strings:
    - not valid json

- name: get some not json gloss
  desc: this will not error because we do not parse
  GET: /notjson
  response_headers:
    content-type: application/json
  disable_response_handler: True
  response_strings:
    - not valid json