Skip to content

Commit af04194

Browse files
committed
black
1 parent 3c3b44c commit af04194

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

adafruit_requests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ def readinto(self, buf):
8787
class _SendFailed(Exception):
8888
"""Custom exception to abort sending a request."""
8989

90+
9091
class OutOfRetries(Exception):
9192
"""Raised when requests has retried to make a request unsuccessfully."""
9293

94+
9395
class Response:
9496
"""The response from a request, contains all the headers/content"""
9597

tests/legacy_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ def test_first_read_fails():
131131
[mock.call(b"Host: "), mock.call(host.encode("utf-8")), mock.call(b"\r\n"),]
132132
)
133133

134-
135134
sock2.send.assert_has_calls(
136135
[mock.call(b"Host: "), mock.call(host.encode("utf-8")), mock.call(b"\r\n"),]
137136
)

tests/reuse_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ def test_second_send_fails():
171171
assert sock2.close.call_count == 0
172172
assert pool.socket.call_count == 2
173173

174+
174175
def test_second_send_lies_recv_fails():
175176
pool = mocket.MocketPool()
176177
pool.getaddrinfo.return_value = ((None, None, None, None, (ip, 80)),)

0 commit comments

Comments
 (0)