Skip to content

Instantly share code, notes, and snippets.

@evilkost
Created December 3, 2014 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evilkost/399ad6dae56424dac5a7 to your computer and use it in GitHub Desktop.
Save evilkost/399ad6dae56424dac5a7 to your computer and use it in GitHub Desktop.
@pytest.yield_fixture
def mc_logging():
with mock.patch("backend.daemons.log.logging") as mc_logging:
yield mc_logging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment