In python, is it possible to check if there are any and how many side effects are remaining?
For example:
mocked_foo = patch.object(Foo, 'method', side_effects=[1, 2, 3])
this reads the number of digits in the variable.
n=int(input(mocked_foo)) count=0 while(n>0): count=count+1 n=n//10 print("The ammount of sideeffects left are:",count)
548k questions
547k answers
4 comments
86.3k users