MCPcopy Create free account
hub / github.com/pytest-dev/pytest / snap

Method snap

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

Source from the content-addressed store, hash-verified

311 EMPTY_BUFFER = "" # type: ignore[assignment]
312
313 def snap(self):
314 res = self.tmpfile.getvalue()
315 self.tmpfile.seek(0)
316 self.tmpfile.truncate()
317 return res
318
319 def writeorg(self, data):
320 self._assert_state("writeorg", ("started", "suspended"))

Callers

nothing calls this directly

Calls 1

getvalueMethod · 0.45

Tested by

no test coverage detected