fname
stringlengths
63
176
rel_fname
stringclasses
706 values
line
int64
-1
4.5k
name
stringlengths
1
81
kind
stringclasses
2 values
category
stringclasses
2 values
info
stringlengths
0
77.9k
⌀
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
153
WarningsChecker
ref
function
with WarningsChecker(expected_warning, _ispytest=True):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
154
func
ref
function
return func(*args[1:], **kwargs)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
157
WarningsRecorder
def
class
__init__ list __getitem__ __iter__ __len__ pop clear __enter__ __exit__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
164
check_ispytest
ref
function
check_ispytest(_ispytest)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
201
__enter__
def
function
def __enter__(self) -> "WarningsRecorder": # type: ignore if self._entered: __tracebackhide__ = _True raise RuntimeError("Cannot enter %r twice" % self) _list = super().__enter__() # record=_True means it's None. assert _list is not None self._list = ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
205
__enter__
ref
function
_list = super().__enter__()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
212
__exit__
def
function
def __exit__( self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType], ) -> None: if not self._entered: __tracebackhide__ = _True raise RuntimeError("Cannot exit %r without entering first" % ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
222
__exit__
ref
function
super().__exit__(exc_type, exc_val, exc_tb)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
230
WarningsChecker
def
class
__init__ __exit__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
240
check_ispytest
ref
function
check_ispytest(_ispytest)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
260
__exit__
def
function
def __exit__( self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType], ) -> None: if not self._entered: __tracebackhide__ = _True raise RuntimeError("Cannot exit %r without entering first" % ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
266
__exit__
ref
function
super().__exit__(exc_type, exc_val, exc_tb)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
275
fail
ref
function
fail(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
284
search
ref
function
if re.compile(self.match_expr).search(str(r.message)):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/recwarn.py
src/_pytest/recwarn.py
287
fail
ref
function
fail(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
43
getworkerinfoline
def
function
def getworkerinfoline(node): try: return node._workerinfocache except AttributeError: d = node.workerinfo ver = "%s.%s.%s" % d["version_info"][:3] node._workerinfocache = s = "[{}] {} -- Python {} {}".format( d["id"], d["sysplatform"], ver, d["executable"] ) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
58
BaseReport
def
class
__init__ toterminal get_sections longreprtext caplog capstdout capstderr passed failed skipped fspath count_towards_summary head_line _get_verbose_word _to_json _from_json
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
76
toterminal
def
function
def toterminal(self, out: TerminalWriter) -> None: if hasattr(self, "node"): out.line(getworkerinfoline(self.node)) longrepr = self.longrepr if longrepr is None: return if hasattr(longrepr, "toterminal"): longrepr_terminal = cast(TerminalRepr, lo...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
78
line
ref
function
out.line(getworkerinfoline(self.node))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
78
getworkerinfoline
ref
function
out.line(getworkerinfoline(self.node))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
86
toterminal
ref
function
longrepr_terminal.toterminal(out)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
92
line
ref
function
out.line(s)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
94
get_sections
def
function
def get_sections(self, prefix: str) -> Iterator[Tuple[str, str]]: for name, content in self.sections: if name.startswith(prefix): yield prefix, content @property def longreprtext(self) -> str: """Read-only property that returns the full string representation of ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
100
longreprtext
def
function
def longreprtext(self) -> str: """Read-only property that returns the full string representation of ``longrepr``. .. versionadded:: 3.0 """ file = StringIO() tw = TerminalWriter(file) tw.hasmarkup = _False self.toterminal(tw) exc = file.getval...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
107
TerminalWriter
ref
function
tw = TerminalWriter(file)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
109
toterminal
ref
function
self.toterminal(tw)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
114
caplog
def
function
def caplog(self) -> str: """Return captured log lines, if log capturing is enabled. .. versionadded:: 3.5 """ return "\n".join( content for (prefix, content) in self.get_sections("Captured log") ) @property def capstdout(self) -> str: """Return c...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
120
get_sections
ref
function
content for (prefix, content) in self.get_sections("Captured log")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
124
capstdout
def
function
def capstdout(self) -> str: """Return captured text from stdout, if capturing is enabled. .. versionadded:: 3.0 """ return "".join( content for (prefix, content) in self.get_sections("Captured stdout") ) @property def capstderr(self) -> str: """R...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
130
get_sections
ref
function
content for (prefix, content) in self.get_sections("Captured stdout")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
134
capstderr
def
function
def capstderr(self) -> str: """Return captured text from stderr, if capturing is enabled. .. versionadded:: 3.0 """ return "".join( content for (prefix, content) in self.get_sections("Captured stderr") ) @property def passed(self) -> bool: """Whe...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
140
get_sections
ref
function
content for (prefix, content) in self.get_sections("Captured stderr")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
144
passed
def
function
def passed(self) -> bool: """Whether the outcome is passed.""" return self.outcome == "passed" @property def failed(self) -> bool: """Whether the outcome is failed.""" return self.outcome == "failed" @property def skipped(self) -> bool: """Whether the outcom...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
149
failed
def
function
def failed(self) -> bool: """Whether the outcome is failed.""" return self.outcome == "failed" @property def skipped(self) -> bool: """Whether the outcome is skipped.""" return self.outcome == "skipped" @property def fspath(self) -> str: """The path portion ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
154
skipped
def
function
def skipped(self) -> bool: """Whether the outcome is skipped.""" return self.outcome == "skipped" @property def fspath(self) -> str: """The path portion of the reported node, as a string.""" return self.nodeid.split("::")[0] @property def count_towards_summary(self)...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
164
count_towards_summary
def
function
def count_towards_summary(self) -> bool: """**Experimental** Whether this report should be counted towards the totals shown at the end of the test session: "1 passed, 1 failure, etc". .. note:: This function is considered **experimental**, so beware that it is subject to change...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
176
head_line
def
function
def head_line(self) -> Optional[str]: """**Experimental** The head line shown with longrepr output for this report, more commonly during traceback representation during failures:: ________ Test.foo ________ In the example above, the head_line is "Test.foo". .....
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
196
_get_verbose_word
def
function
def _get_verbose_word(self, config: Config): _category, _short, verbose = config.hook.pytest_report_teststatus( report=self, config=config ) return verbose def _to_json(self) -> Dict[str, Any]: """Return the contents of this report as a dict of builtin entries, ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
197
pytest_report_teststatus
ref
function
_category, _short, verbose = config.hook.pytest_report_teststatus(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
202
_to_json
def
function
def _to_json(self) -> Dict[str, Any]: """Return the contents of this report as a dict of builtin entries, suitable for serialization. This was originally the serialize_report() function from xdist (ca03269). Experimental method. """ return _report_to_json(self) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
210
_report_to_json
ref
function
return _report_to_json(self)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
213
_from_json
def
function
def _from_json(cls: Type[_R], reportdict: Dict[str, object]) -> _R: """Create either a TestReport or CollectReport, depending on the calling class. It is the callers responsibility to know which class to pass here. This was originally the serialize_report() function from xdist (ca03269). ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
222
_report_kwargs_from_json
ref
function
kwargs = _report_kwargs_from_json(reportdict)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
223
cls
ref
function
return cls(**kwargs)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
226
_report_unserialization_failure
def
function
def _report_unserialization_failure( type_name: str, report_class: Type[BaseReport], reportdict
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
241
TestReport
def
class
__init__ __repr__ from_item_and_call
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
307
from_item_and_call
def
function
def from_item_and_call(cls, item: Item, call: "CallInfo[None]") -> "TestReport": """Create and fill a TestReport with standard item and call info.""" when = call.when # Remove "collect" from the Literal type -- only for collection calls. assert when != "collect" duration = ca...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
331
_getreprcrash
ref
function
r = excinfo._getreprcrash()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
333
reportinfo
ref
function
path, line = item.reportinfo()[:2]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
341
repr_failure
ref
function
longrepr = item.repr_failure(excinfo)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
343
_repr_failure_py
ref
function
longrepr = item._repr_failure_py(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
344
getoption
ref
function
excinfo, style=item.config.getoption("tbstyle", "auto")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
348
cls
ref
function
return cls(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
362
CollectReport
def
class
__init__ location __repr__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
402
location
def
function
def location(self): return (self.fspath, None, self.fspath) def __repr__(self) -> str: return "<CollectReport {!r} lenresult={} outcome={!r}>".format( self.nodeid, len(self.result), self.outcome )
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
411
CollectErrorRepr
def
class
__init__ toterminal
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
415
toterminal
def
function
def toterminal(self, out: TerminalWriter) -> None: if hasattr(self, "node"): out.line(getworkerinfoline(self.node)) longrepr = self.longrepr if longrepr is None: return if hasattr(longrepr, "toterminal"): longrepr_terminal = cast(TerminalRepr, lo...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
416
line
ref
function
out.line(self.longrepr, red=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
419
pytest_report_to_serializable
def
function
def pytest_report_to_serializable( report: Union[CollectReport, TestReport]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
423
_to_json
ref
function
data = report._to_json()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
430
pytest_report_from_serializable
def
function
def pytest_report_from_serializable( data: Dict[str, Any],
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
435
_from_json
ref
function
return TestReport._from_json(data)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
437
_from_json
ref
function
return CollectReport._from_json(data)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
444
_report_to_json
def
function
def _report_to_json(report: BaseReport) -> Dict[str, Any]: """Return the contents of this report as a dict of builtin entries, suitable for serialization. This was originally the serialize_report() function from xdist (ca03269). """ def serialize_repr_entry( entry: Union[ReprEntry, ReprEnt...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
451
serialize_repr_entry
def
function
def serialize_repr_entry( entry: Union[ReprEntry, ReprEntryNative] ) -> Dict[str, Any]: data = attr.asdict(entry) for key, value in data.items(): if hasattr(value, "__dict__"): data[key] = attr.asdict(value) entry_data = {"type": type(entry).__name__, ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
461
serialize_repr_traceback
def
function
def serialize_repr_traceback(reprtraceback: ReprTraceback) -> Dict[str, Any]: result = attr.asdict(reprtraceback) result["reprentries"] = [ serialize_repr_entry(x) for x in reprtraceback.reprentries ] return result def serialize_repr_crash( reprcrash: Optiona...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
464
serialize_repr_entry
ref
function
serialize_repr_entry(x) for x in reprtraceback.reprentries
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
468
serialize_repr_crash
def
function
def serialize_repr_crash( reprcrash: Optional[ReprFileLocation], ) -> Optional[Dict[str, Any]]: if reprcrash is not None: return attr.asdict(reprcrash) else: return None def serialize_exception_longrepr(rep: BaseReport) -> Dict[str, Any]: assert rep.l...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
476
serialize_exception_longrepr
def
function
def serialize_exception_longrepr(rep: BaseReport) -> Dict[str, Any]: assert rep.longrepr is not None # TODO: Investigate whether the duck typing is really necessary here. longrepr = cast(ExceptionRepr, rep.longrepr) result: Dict[str, Any] = { "reprcrash": serialize_repr_c...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
481
serialize_repr_crash
ref
function
"reprcrash": serialize_repr_crash(longrepr.reprcrash),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
482
serialize_repr_traceback
ref
function
"reprtraceback": serialize_repr_traceback(longrepr.reprtraceback),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
490
serialize_repr_traceback
ref
function
serialize_repr_traceback(repr_traceback),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
491
serialize_repr_crash
ref
function
serialize_repr_crash(repr_crash),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
504
serialize_exception_longrepr
ref
function
d["longrepr"] = serialize_exception_longrepr(report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
517
_report_kwargs_from_json
def
function
def _report_kwargs_from_json(reportdict: Dict[str, Any]) -> Dict[str, Any]: """Return **kwargs that can be used to construct a TestReport or CollectReport instance. This was originally the serialize_report() function from xdist (ca03269). """ def deserialize_repr_entry(entry_data): data = ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
524
deserialize_repr_entry
def
function
def deserialize_repr_entry(entry_data): data = entry_data["data"] entry_type = entry_data["type"] if entry_type == "ReprEntry": reprfuncargs = None reprfileloc = None reprlocals = None if data["reprfuncargs"]: reprfuncargs = Rep...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
532
ReprFuncArgs
ref
function
reprfuncargs = ReprFuncArgs(**data["reprfuncargs"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
534
ReprFileLocation
ref
function
reprfileloc = ReprFileLocation(**data["reprfileloc"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
536
ReprLocals
ref
function
reprlocals = ReprLocals(data["reprlocals"]["lines"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
538
ReprEntry
ref
function
reprentry: Union[ReprEntry, ReprEntryNative] = ReprEntry(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
546
ReprEntryNative
ref
function
reprentry = ReprEntryNative(data["lines"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
548
_report_unserialization_failure
ref
function
_report_unserialization_failure(entry_type, TestReport, reportdict)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
551
deserialize_repr_traceback
def
function
def deserialize_repr_traceback(repr_traceback_dict): repr_traceback_dict["reprentries"] = [ deserialize_repr_entry(x) for x in repr_traceback_dict["reprentries"] ] return ReprTraceback(**repr_traceback_dict) def deserialize_repr_crash(repr_crash_dict: Optional[Dict[str, Any]...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
553
deserialize_repr_entry
ref
function
deserialize_repr_entry(x) for x in repr_traceback_dict["reprentries"]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
555
ReprTraceback
ref
function
return ReprTraceback(**repr_traceback_dict)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
557
deserialize_repr_crash
def
function
def deserialize_repr_crash(repr_crash_dict: Optional[Dict[str, Any]]): if repr_crash_dict is not None: return ReprFileLocation(**repr_crash_dict) else: return None if ( reportdict["longrepr"] and "reprcrash" in reportdict["longrepr"] and "reprtrac...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
559
ReprFileLocation
ref
function
return ReprFileLocation(**repr_crash_dict)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
569
deserialize_repr_traceback
ref
function
reprtraceback = deserialize_repr_traceback(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
572
deserialize_repr_crash
ref
function
reprcrash = deserialize_repr_crash(reportdict["longrepr"]["reprcrash"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
580
deserialize_repr_traceback
ref
function
deserialize_repr_traceback(repr_traceback_data),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
581
deserialize_repr_crash
ref
function
deserialize_repr_crash(repr_crash_data),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
587
ExceptionChainRepr
ref
function
] = ExceptionChainRepr(chain)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
589
ReprExceptionInfo
ref
function
exception_info = ReprExceptionInfo(reprtraceback, reprcrash)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/reports.py
src/_pytest/reports.py
592
addsection
ref
function
exception_info.addsection(*section)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
49
pytest_addoption
def
function
def pytest_addoption(parser: Parser) -> None: group = parser.getgroup("terminal reporting", "reporting", after="general") group.addoption( "--durations", action="store", type=int, default=None, metavar="N", help="show N slowest setup/test durations (N=0 for all)."...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
50
getgroup
ref
function
group = parser.getgroup("terminal reporting", "reporting", after="general")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
51
addoption
ref
function
group.addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
59
addoption
ref
function
group.addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
69
pytest_terminal_summary
def
function
def pytest_terminal_summary(terminalreporter: "TerminalReporter") -> None: durations = terminalreporter.config.option.durations durations_min = terminalreporter.config.option.durations_min verbose = terminalreporter.config.getvalue("verbose") if durations is None: return tr = terminalreporte...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
72
getvalue
ref
function
verbose = terminalreporter.config.getvalue("verbose")