Skip to content

Commit bd76cad

Browse files
committed
Black!
1 parent ab2dc50 commit bd76cad

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

tests/test_asyncmock.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,4 +420,6 @@ async def test_get_attribute_of_unknown_attribute_returns_mock():
420420
assert isinstance(m.foo, AsyncMock), "Returned object is not an AsyncMock."
421421
assert id(m.foo) == id(m.foo), "Returned object is not the same."
422422
assert await m.foo() is await m.foo(), "Returned object is not the same."
423-
assert isinstance(await m.foo(), AsyncMock), "Returned object is not a Mock."
423+
assert isinstance(
424+
await m.foo(), AsyncMock
425+
), "Returned object is not a Mock."

tests/test_mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,4 +391,4 @@ def test_get_attr_of_unknown_attribute_returns_mock():
391391
assert isinstance(m.foo, Mock), "Returned object is not a Mock."
392392
assert id(m.foo) == id(m.foo), "Returned object is not the same."
393393
assert m.foo() is m.foo(), "Returned object is not the same."
394-
assert isinstance(m.foo(), Mock), "Returned object is not a Mock."
394+
assert isinstance(m.foo(), Mock), "Returned object is not a Mock."

umock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ class or instance) that acts as the specification for the mock
420420
for name in self._spec:
421421
# Create a new mock object for each attribute in the spec.
422422
setattr(self, name, Mock())
423-
423+
424424
if side_effect:
425425
if type(side_effect) in (str, list, tuple, set, dict):
426426
# If side_effect is an iterable then make it an iterator.

0 commit comments

Comments
 (0)