I want to flip a flag in a piece of code. The unit tests for that code are written so as to depend on the flag being turned off in places that really should not depend on it, including places that test the behavior where the flag is turned on. As in, they have the flag off for the first 3/4 of the test and then turn it on mid-test because if you turn it on before the test starts (you know, like it would be in the real world) something that looks completely unrelated breaks. I pointed out this problem to someone on the team that wrote this whole thing, and he wants me to fix it. Dude, I don't know this codebase, I don't know what your tests are supposed to be doing, I just know they're doing it fucking badly.















