Closed aaltat closed 6 years ago
In general you have to mock the class, t.i. ClassName
So easy-peasy solution here is setattr(ClassName, 'value', 41)
or even ClassName.value = 41
Again I wonder why I did not see that one. But it works, thanks from help.
When I have this:
Is there an easy to way to mock what
value
property returns?