-1

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])
drum
  • 5,416
  • 7
  • 57
  • 91

1 Answers1

0

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 number of side effects left are:",count)
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Caio Navarro
  • 48
  • 1
  • 13