All Questions
1 question
0votes
1answer
1kviews
How to test a function with several conditional nested side effects
In Python, consider a function like the following: def main(*args): value1 = pure_function1(*args) if condition(value1): value = side_effect1(value1) if value: ...