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

Method pytest_runtest_setup

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

Source from the content-addressed store, hash-verified

94
95 @pytest.hookimpl(hookwrapper=True)
96 def pytest_runtest_setup(self, item):
97 if item.get_closest_marker("ignored"):
98 if not item.config.getvalue("ignored"):
99 pytest.skip("use --ignored to run this test")
100 self.enable_logging(item)
101 yield
102 self.disable_logging(item)
103
104 @pytest.hookimpl(hookwrapper=True)
105 def pytest_pyfunc_call(self, pyfuncitem):

Callers

nothing calls this directly

Calls 2

enable_loggingMethod · 0.95
disable_loggingMethod · 0.95

Tested by

no test coverage detected