File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2293,11 +2293,11 @@ cannot be resolved or the host was unreachable. The
2293
2293
2294
2294
In order to test errors that occur while a response is being streamed
2295
2295
(that is, after the headers have already been received), provide the
2296
- response as one of the iterable ``body `` parts from
2297
- your `` MockResponse `` instance . You can either use an exception
2298
- directly, or yield the exception from a callback. For exceptions of
2299
- this kind, ``getStatusCode() `` may indicate a success (200), but
2300
- accessing ``getContent() `` fails.
2296
+ exception to `` MockResponse `` as part of the ``body ``
2297
+ parameter . You can either use an exception directly, or yield the
2298
+ exception from a callback. For exceptions of this kind,
2299
+ ``getStatusCode() `` may indicate a success (200), but accessing
2300
+ ``getContent() `` fails.
2301
2301
2302
2302
The following example code illustrates all three options.
2303
2303
You can’t perform that action at this time.
0 commit comments