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 d0199bd commit ec2a2bcCopy full SHA for ec2a2bc
test_pytest_mock.py
@@ -145,17 +145,17 @@ def bar(self, arg):
145
return arg * 2
146
147
foo = Foo()
148
- spy = mocker.spy(foo, 'Bar')
+ spy = mocker.spy(foo, 'bar')
149
150
- assert foo.Bar(arg=10) == 20
+ assert foo.bar(arg=10) == 20
151
spy.assert_called_once_with(arg=10)
152
153
154
def test_mocker_stub(mocker):
155
- def Foo(on_something):
+ def foo(on_something):
156
on_something('foo', 'bar')
157
158
stub = mocker.stub()
159
160
- Foo(stub)
+ foo(stub)
161
stub.assert_called_once_with('foo', 'bar')
0 commit comments