MCPcopy Create free account
hub / github.com/chatmail/core / pytest_runtest_teardown

Method pytest_runtest_teardown

python/src/deltachat/testplugin.py:111–117  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

109
110 @pytest.hookimpl(hookwrapper=True)
111 def pytest_runtest_teardown(self, item):
112 logging = item.config.getoption("--extra-info")
113 if logging:
114 self.enable_logging(item)
115 yield
116 if logging:
117 self.disable_logging(item)
118
119 la = LoggingAspect()
120 config.pluginmanager.register(la)

Callers

nothing calls this directly

Calls 2

enable_loggingMethod · 0.95
disable_loggingMethod · 0.95

Tested by

no test coverage detected