You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you replace your mocker.stub call by unittest.mock.MagicMock and see if you have the same behavior? If you do then the behavior is expected, and you can raise the question upstream to see if this is intended by unittest.mock or it should behave differently.
Activity
nicoddemus commentedon Jul 25, 2023
Hi @AstraLuma,
mocker.stubis just a thin wrapper which callsunittest.mock.MagicMock:pytest-mock/src/pytest_mock/plugin.py
Lines 182 to 185 in d5243b0
Can you replace your
mocker.stubcall byunittest.mock.MagicMockand see if you have the same behavior? If you do then the behavior is expected, and you can raise the question upstream to see if this is intended byunittest.mockor it should behave differently.