test: Re-enable scenario consistency checks after disabling them#2141
Conversation
dwilding
left a comment
There was a problem hiding this comment.
Would this be easier to follow in future if test_rubbish_event_raises became two separate tests? One test that checks for AttributeError on the non-pebble-ready events, and another that checks for AttributeError on kazoo_pebble_ready (then consistency checks could be set & unset unconditionally)
It'd probably be easier to use |
|
I've refactored to use two tests as you suggested, @dwilding. Would you mind having another quick look before merge? |
dwilding
left a comment
There was a problem hiding this comment.
Looks really clear to me, thanks!
This PR corrects one of the
testingtests to correctly re-enable consistency checks after turning them off. They default to on, and we run our own tests with them on.Before this PR, they would be turned off, as we check
if os.getenv(...), which will beTruewhen the variable is set to the string'false'.