Skip to content

Commit 7df4d38

Browse files
committed
fix up mock tests coverage
Backports: d3642c9a6a65d7edee2ea210d02a75a364df186e Signed-off-by: Chris Withers <chris@simplistix.co.uk>
1 parent ee9744d commit 7df4d38

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

mock/tests/testmock.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,11 +1656,9 @@ def test_mock_unsafe(self):
16561656
m.has_calls()
16571657

16581658
class Foo(object):
1659-
def called_once(self):
1660-
pass
1659+
def called_once(self): pass
16611660

1662-
def has_calls(self):
1663-
pass
1661+
def has_calls(self): pass
16641662

16651663
m = Mock(spec=Foo)
16661664
m.called_once()
@@ -1682,11 +1680,9 @@ def has_calls(self):
16821680
# gh-100739
16831681
def test_mock_safe_with_spec(self):
16841682
class Foo(object):
1685-
def assert_bar(self):
1686-
pass
1683+
def assert_bar(self): pass
16871684

1688-
def assertSome(self):
1689-
pass
1685+
def assertSome(self): pass
16901686

16911687
m = Mock(spec=Foo)
16921688
m.assert_bar()

0 commit comments

Comments
 (0)