Run black on moto & test directories.
This commit is contained in:
parent
c820395dbf
commit
96e5b1993d
507 changed files with 52541 additions and 47814 deletions
|
|
@ -6,16 +6,16 @@ from six import PY3
|
|||
|
||||
|
||||
class TestSocketPair(unittest.TestCase):
|
||||
|
||||
@mock_dynamodb2_deprecated
|
||||
def test_asyncio_deprecated(self):
|
||||
if PY3:
|
||||
self.assertIn(
|
||||
'moto.packages.httpretty.core.fakesock.socket',
|
||||
"moto.packages.httpretty.core.fakesock.socket",
|
||||
str(socket.socket),
|
||||
'Our mock should be present'
|
||||
"Our mock should be present",
|
||||
)
|
||||
import asyncio
|
||||
|
||||
self.assertIsNotNone(asyncio.get_event_loop())
|
||||
|
||||
@mock_dynamodb2_deprecated
|
||||
|
|
@ -24,9 +24,9 @@ class TestSocketPair(unittest.TestCase):
|
|||
# In Python2, the fakesocket is not set, for some reason.
|
||||
if PY3:
|
||||
self.assertIn(
|
||||
'moto.packages.httpretty.core.fakesock.socket',
|
||||
"moto.packages.httpretty.core.fakesock.socket",
|
||||
str(socket.socket),
|
||||
'Our mock should be present'
|
||||
"Our mock should be present",
|
||||
)
|
||||
a, b = socket.socketpair()
|
||||
self.assertIsNotNone(a)
|
||||
|
|
@ -36,7 +36,6 @@ class TestSocketPair(unittest.TestCase):
|
|||
if b:
|
||||
b.close()
|
||||
|
||||
|
||||
@mock_dynamodb2
|
||||
def test_socket_pair(self):
|
||||
a, b = socket.socketpair()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue