File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ def test_get_text():
5353 )
5454 assert r .text == str (text , "utf-8" )
5555
56+
5657def test_close_flush ():
5758 """Test that a chunked response can be closed even when the request contents were not accessed."""
5859 pool = mocket .MocketPool ()
@@ -78,5 +79,5 @@ def test_close_flush():
7879 sock .send .assert_has_calls (
7980 [mock .call (b"Host: " ), mock .call (b"wifitest.adafruit.com" ),]
8081 )
81-
82+
8283 r .close ()
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ def test_get_http_text():
7474 )
7575 assert r .text == str (text , "utf-8" )
7676
77+
7778def test_get_close ():
7879 """Test that a response can be closed without the contents being accessed."""
7980 pool = mocket .MocketPool ()
You can’t perform that action at this time.
0 commit comments