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 0cd597f commit 4e544eaCopy full SHA for 4e544ea
Lib/test/test_unittest/testmock/testmock.py
@@ -1653,11 +1653,9 @@ def test_mock_unsafe(self):
1653
m.has_calls()
1654
1655
class Foo(object):
1656
- def called_once(self):
1657
- pass
+ def called_once(self): pass
1658
1659
- def has_calls(self):
1660
+ def has_calls(self): pass
1661
1662
m = Mock(spec=Foo)
1663
m.called_once()
@@ -1679,11 +1677,9 @@ def has_calls(self):
1679
1677
# gh-100739
1680
1678
def test_mock_safe_with_spec(self):
1681
1682
- def assert_bar(self):
1683
+ def assert_bar(self): pass
1684
1685
- def assertSome(self):
1686
+ def assertSome(self): pass
1687
1688
1689
m.assert_bar()
0 commit comments