cdent / gabbi

Declarative HTTP Testing for Python and anything else
http://gabbi.readthedocs.org/
Other
148 stars 34 forks source link

Gabbi needs a way to turn off response handlers per test #299

Closed cdent closed 2 years ago

cdent commented 2 years ago

If there is an response that sends a content-type that matches a response handler, but the response does not actually match the content-type (can't be parsed etc) this can lead to problematic errors.

Two things may need to happen:

This is (sadly) necessary to be able to run tests (or run gabbi in whatever way) against poorly formed APIs that send bad response headers.

Whether this is done as a boolean parameter related to "no handlers" or something like a content-type-override needs to be decided.