Skip to content

Commit

Permalink
Correct RequestSequence response tuple type docs
Browse files Browse the repository at this point in the history
The header value is passed to IRequest.setHeader() which accepts
strings, not lists of strings.
  • Loading branch information
twm committed Mar 6, 2019
1 parent 2ed0d46 commit 9dd8c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/treq/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ class RequestSequence(object):
- ``code`` is an integer representing the HTTP status code to return.
- ``headers`` is a dictionary mapping :class:`bytes` to :class:`bytes` or
:class:`list` of :class:`bytes`.
:class:`str`. Note that the value is *not* a list.
- ``body`` is a :class:`bytes`.
:ivar list sequence: A sequence of (request tuple, response tuple)
Expand Down

0 comments on commit 9dd8c2f

Please sign in to comment.