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

Method is_capturing

src/_pytest/capture.py:759–764  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

757 )
758
759 def is_capturing(self) -> str | bool:
760 if self.is_globally_capturing():
761 return "global"
762 if self._capture_fixture:
763 return f"fixture {self._capture_fixture.request.fixturename}"
764 return False
765
766 # Global capturing control
767

Callers 1

_is_capturingMethod · 0.80

Calls 1

is_globally_capturingMethod · 0.95

Tested by

no test coverage detected