yep (not strictly required, a regular fixture could do it too, but much easier using yield_fixture)

would have the effect of your entire test running inside this context manager. (if it makes sense, you could even enable it fore entire (test) modules, or the whole suite)