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 54245b2 commit 3135692Copy full SHA for 3135692
tests/test_attribute.py
@@ -70,10 +70,11 @@ async def test_handler_initialise(mocker: MockerFixture):
70
handler_mock = mocker.patch.object(handler, "initialise")
71
attr = AttrR(Int(), handler=handler)
72
73
- await attr.initialise(mocker.ANY)
+ ctrlr = mocker.Mock()
74
+ await attr.initialise(ctrlr)
75
76
# The handler initialise method should be called from the attribute
- handler_mock.assert_called_once_with(mocker.ANY)
77
+ handler_mock.assert_called_once_with(ctrlr)
78
79
handler = SimpleHandler()
80
attr = AttrW(Int(), handler=handler)
0 commit comments