2 ms·
This will break other tests because there is no logic here for reverting SomeClass back to it's previous behaviour. Use the patch function as a decorator or as
by fnord123 6y ago
This will break other tests because there is no logic here for reverting SomeClass back to it's previous behaviour. Use the patch function as a decorator or as a context.
- ipsum2 6y agoYes, this is an anti-pattern, not an example of a useful piece of code :)