Closed Fluxx closed 11 years ago
Using testutils.switches is great for forcing a switch on or off globally, but there are cases where you want to have more fine grained control:
testutils.switches
active
True
False
Now, you can do this with a mock side_effect but really gutter should support this natively.
side_effect
Using
testutils.switches
is great for forcing a switch on or off globally, but there are cases where you want to have more fine grained control:active
, which I have forgotten to do in the past.active
returnTrue
orFalse
differently during the course of a test.Now, you can do this with a mock
side_effect
but really gutter should support this natively.