We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee9744d commit 7df4d38Copy full SHA for 7df4d38
mock/tests/testmock.py
@@ -1656,11 +1656,9 @@ def test_mock_unsafe(self):
1656
m.has_calls()
1657
1658
class Foo(object):
1659
- def called_once(self):
1660
- pass
+ def called_once(self): pass
1661
1662
- def has_calls(self):
1663
+ def has_calls(self): pass
1664
1665
m = Mock(spec=Foo)
1666
m.called_once()
@@ -1682,11 +1680,9 @@ def has_calls(self):
1682
1680
# gh-100739
1683
1681
def test_mock_safe_with_spec(self):
1684
1685
- def assert_bar(self):
1686
+ def assert_bar(self): pass
1687
1688
- def assertSome(self):
1689
+ def assertSome(self): pass
1690
1691
1692
m.assert_bar()
0 commit comments