Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
tannewt committed Sep 11, 2020
1 parent def66e3 commit 29e954d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adafruit_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ def delete(self, url, **kw):

_default_session = None # pylint: disable=invalid-name


class _FakeSSLSocket:
def __init__(self, socket, tls_mode):
self._socket = socket
Expand All @@ -538,6 +539,7 @@ def __init__(self, socket, tls_mode):
def connect(self, address):
return self._socket.connect(address, self._mode)


class _FakeSSLContext:
def __init__(self, iface):
self._iface = iface
Expand Down
2 changes: 2 additions & 0 deletions tests/legacy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def test_get_json():
assert r.json() == response
r.close()


def test_tls_mode():
mocket.getaddrinfo.return_value = ((None, None, None, None, (ip, 80)),)
sock = mocket.Mocket(headers + encoded)
Expand All @@ -36,6 +37,7 @@ def test_tls_mode():
assert r.json() == response
r.close()


def test_post_string():
mocket.getaddrinfo.return_value = ((None, None, None, None, (ip, 80)),)
sock = mocket.Mocket(headers + encoded)
Expand Down

0 comments on commit 29e954d

Please sign in to comment.