@@ -288,6 +288,7 @@ def test_close():
288288 client .pool_manager = mock_pool_manager
289289
290290 client .close ()
291+
291292 mock_pool_manager .clear .assert_called_once ()
292293
293294
@@ -333,7 +334,6 @@ def test_request_preload_content():
333334 assert isinstance (resp , RESTResponse )
334335 assert resp .status == 200
335336 assert resp .data == b'{"some":"data"}'
336- mock_pool_manager .clear .assert_called_once ()
337337
338338
339339def test_request_no_preload_content ():
@@ -380,7 +380,6 @@ def test_request_no_preload_content():
380380 # We expect the raw HTTPResponse
381381 assert resp == mock_raw_response
382382 assert resp .status == 200
383- mock_pool_manager .clear .assert_called_once ()
384383
385384
386385def test_stream_happy_path ():
@@ -431,7 +430,6 @@ def release_conn(self):
431430
432431 assert results == [{"foo" : "bar" }, {"hello" : "world" }]
433432 mock_pool_manager .request .assert_called_once ()
434- mock_pool_manager .clear .assert_called_once ()
435433
436434
437435def test_stream_partial_chunks ():
@@ -483,7 +481,6 @@ def release_conn(self):
483481
484482 assert results == [{"foo" : "bar" }, {"hello" : "world" }]
485483 mock_pool_manager .request .assert_called_once ()
486- mock_pool_manager .clear .assert_called_once ()
487484
488485
489486def test_stream_exception_in_chunks ():
@@ -534,4 +531,3 @@ def release_conn(self):
534531 # Exception is logged, we yield nothing
535532 assert results == []
536533 mock_pool_manager .request .assert_called_once ()
537- mock_pool_manager .clear .assert_called_once ()
0 commit comments