MCPcopy
hub / github.com/pytest-dev/pytest / MockCaptureManager

Class MockCaptureManager

testing/logging/test_reporting.py:943–950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941 from _pytest.logging import _LiveLoggingStreamHandler
942
943 class MockCaptureManager:
944 calls = []
945
946 @contextlib.contextmanager
947 def global_and_fixture_disabled(self):
948 self.calls.append("enter disabled")
949 yield
950 self.calls.append("exit disabled")
951
952 class DummyTerminal(io.StringIO):
953 def section(self, *args, **kwargs):

Callers 1

Calls

no outgoing calls

Tested by 1