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/terminal.py
src/_pytest/terminal.py
212
_addoption
ref
function
group._addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
219
addini
ref
function
parser.addini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
226
pytest_configure
def
function
def pytest_configure(config: Config) -> None: reporter = TerminalReporter(config, sys.stdout) config.pluginmanager.register(reporter, "terminalreporter") if config.option.debug or config.option.traceconfig: def mywriter(tags, args): msg = " ".join(map(str, args)) reporter.wr...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
227
TerminalReporter
ref
function
reporter = TerminalReporter(config, sys.stdout)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
228
register
ref
function
config.pluginmanager.register(reporter, "terminalreporter")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
231
mywriter
def
function
def mywriter(tags, args): msg = " ".join(map(str, args)) reporter.write_line("[traceconfig] " + msg) config.trace.root.setprocessor("pytest:config", mywriter)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
233
write_line
ref
function
reporter.write_line("[traceconfig] " + msg)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
235
setprocessor
ref
function
config.trace.root.setprocessor("pytest:config", mywriter)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
238
getreportopt
def
function
def getreportopt(config: Config) -> str: reportchars: str = config.option.reportchars old_aliases = {"F", "S"} reportopts = "" for char in reportchars: if char in old_aliases: char = char.lower() if char == "a": reportopts = "sxXEf" elif char == "A": ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
263
hookimpl
ref
function
@hookimpl(trylast=True) # after _pytest.runner
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
264
pytest_report_teststatus
def
function
def pytest_report_teststatus(report: BaseReport) -> Tuple[str, str, str]: letter = "F" if report.passed: letter = "." elif report.skipped: letter = "s" outcome: str = report.outcome if report.when in ("collect", "setup", "teardown") and outcome == "failed": outcome = "error"...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
280
WarningReport
def
class
get_location
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
297
get_location
def
function
def get_location(self, config: Config) -> Optional[str]: """Return the more user-friendly information about the location of a warning, or None.""" if self.nodeid: return self.nodeid if self.fslocation: filename, linenum = self.fslocation relpath = bestrelp...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
303
bestrelpath
ref
function
relpath = bestrelpath(config.invocation_params.dir, absolutepath(filename))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
303
absolutepath
ref
function
relpath = bestrelpath(config.invocation_params.dir, absolutepath(filename))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
309
TerminalReporter
def
class
__init__ _determine_show_progress_info verbosity showheader no_header no_summary showfspath showfspath showlongtestinfo hasopt write_fspath_result write_ensure_prefix ensure_newline write flush write_line rewrite write_sep section line _add_stats pytest_internalerror pytest_warning_recorded pytest_plugin_registered pyt...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
324
create_terminal_writer
ref
function
self._tw = _pytest.config.create_terminal_writer(config, file)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
327
getreportopt
ref
function
self.reportchars = getreportopt(config)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
331
_determine_show_progress_info
ref
function
self._show_progress_info = self._determine_show_progress_info()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
336
_determine_show_progress_info
def
function
null
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
339
getoption
ref
function
if self.config.getoption("capture", "no") == "no":
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
342
getoption
ref
function
if self.config.getoption("setupshow", False):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
344
getini
ref
function
cfg: str = self.config.getini("console_output_style")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
353
verbosity
def
function
def verbosity(self) -> int: verbosity: int = self.config.option.verbose return verbosity @property def showheader(self) -> bool: return self.verbosity >= 0 @property def no_header(self) -> bool: return bool(self.config.option.no_header) @property def no_sum...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
358
showheader
def
function
def showheader(self) -> bool: return self.verbosity >= 0 @property def no_header(self) -> bool: return bool(self.config.option.no_header) @property def no_summary(self) -> bool: return bool(self.config.option.no_summary) @property def showfspath(self) -> bool: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
362
no_header
def
function
def no_header(self) -> bool: return bool(self.config.option.no_header) @property def no_summary(self) -> bool: return bool(self.config.option.no_summary) @property def showfspath(self) -> bool: if self._showfspath is None: return self.verbosity >= 0 retu...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
366
no_summary
def
function
def no_summary(self) -> bool: return bool(self.config.option.no_summary) @property def showfspath(self) -> bool: if self._showfspath is None: return self.verbosity >= 0 return self._showfspath @showfspath.setter def showfspath(self, value: Optional[bool]) -> Non...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
370
showfspath
def
function
def showfspath(self) -> bool: if self._showfspath is None: return self.verbosity >= 0 return self._showfspath @showfspath.setter def showfspath(self, value: Optional[bool]) -> None: self._showfspath = value @property def showlongtestinfo(self) -> bool: r...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
376
showfspath
def
function
def showfspath(self, value: Optional[bool]) -> None: self._showfspath = value @property def showlongtestinfo(self) -> bool: return self.verbosity > 0 def hasopt(self, char: str) -> bool: char = {"xfailed": "x", "skipped": "s"}.get(char, char) return char in self.reportc...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
380
showlongtestinfo
def
function
def showlongtestinfo(self) -> bool: return self.verbosity > 0 def hasopt(self, char: str) -> bool: char = {"xfailed": "x", "skipped": "s"}.get(char, char) return char in self.reportchars def write_fspath_result(self, nodeid: str, res, **markup: bool) -> None: fspath = self....
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
383
hasopt
def
function
def hasopt(self, char: str) -> bool: char = {"xfailed": "x", "skipped": "s"}.get(char, char) return char in self.reportchars def write_fspath_result(self, nodeid: str, res, **markup: bool) -> None: fspath = self.config.rootpath / nodeid.split("::")[0] if self.currentfspath is No...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
387
write_fspath_result
def
function
def write_fspath_result(self, nodeid: str, res, **markup: bool) -> None: fspath = self.config.rootpath / nodeid.split("::")[0] if self.currentfspath is None or fspath != self.currentfspath: if self.currentfspath is not None and self._show_progress_info: self._write_progre...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
391
_write_progress_information_filling_space
ref
function
self._write_progress_information_filling_space()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
393
bestrelpath
ref
function
relfspath = bestrelpath(self.startpath, fspath)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
394
line
ref
function
self._tw.line()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
398
write_ensure_prefix
def
function
def write_ensure_prefix(self, prefix: str, extra: str = "", **kwargs) -> None: if self.currentfspath != prefix: self._tw.line() self.currentfspath = prefix self._tw.write(prefix) if extra: self._tw.write(extra, **kwargs) self.currentfspath ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
400
line
ref
function
self._tw.line()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
407
ensure_newline
def
function
def ensure_newline(self) -> None: if self.currentfspath: self._tw.line() self.currentfspath = None def write(self, content: str, *, flush: bool = _False, **markup: bool) -> None: self._tw.write(content, flush=flush, **markup) def flush(self) -> None: self._t...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
409
line
ref
function
self._tw.line()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
418
write_line
def
function
def write_line(self, line: Union[str, bytes], **markup: bool) -> None: if not isinstance(line, str): line = str(line, errors="replace") self.ensure_newline() self._tw.line(line, **markup) def rewrite(self, line: str, **markup: bool) -> None: """Rewinds the terminal c...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
421
ensure_newline
ref
function
self.ensure_newline()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
422
line
ref
function
self._tw.line(line, **markup)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
424
rewrite
def
function
def rewrite(self, line: str, **markup: bool) -> None: """Rewinds the terminal cursor to the beginning and writes the given line. :param erase: If _True, will also add spaces until the full terminal width to ensure previous lines are properly erased. The rest of the ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
442
write_sep
def
function
def write_sep( self, sep: str, title: Optional[str] = None, fullwidth: Optional[int] = None, **markup: bool, ) -> None: self.ensure_newline() self._tw.sep(sep, title, fullwidth, **markup) def section(self, title: str, sep: str = "=", **kw: bool) -> No...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
449
ensure_newline
ref
function
self.ensure_newline()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
450
sep
ref
function
self._tw.sep(sep, title, fullwidth, **markup)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
452
section
def
function
def section(self, title: str, sep: str = "=", **kw: bool) -> None: self._tw.sep(sep, title, **kw) def line(self, msg: str, **kw: bool) -> None: self._tw.line(msg, **kw) def _add_stats(self, category: str, items: Sequence[Any]) -> None: set_main_color = category not in self.stats ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
453
sep
ref
function
self._tw.sep(sep, title, **kw)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
455
line
def
function
def line(self, msg: str, **kw: bool) -> None: self._tw.line(msg, **kw) def _add_stats(self, category: str, items: Sequence[Any]) -> None: set_main_color = category not in self.stats self.stats.setdefault(category, []).extend(items) if set_main_color: self._set_main_c...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
456
line
ref
function
self._tw.line(msg, **kw)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
458
_add_stats
def
function
def _add_stats(self, category: str, items: Sequence[Any]) -> None: set_main_color = category not in self.stats self.stats.setdefault(category, []).extend(items) if set_main_color: self._set_main_color() def pytest_internalerror(self, excrepr: ExceptionRepr) -> bool: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
462
_set_main_color
ref
function
self._set_main_color()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
464
pytest_internalerror
def
function
def pytest_internalerror(self, excrepr: ExceptionRepr) -> bool: for line in str(excrepr).split("\n"): self.write_line("INTERNALERROR> " + line) return _True def pytest_warning_recorded( self, warning_message: warnings.WarningMessage, nodeid: str, ) -> Non...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
466
write_line
ref
function
self.write_line("INTERNALERROR> " + line)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
469
pytest_warning_recorded
def
function
def pytest_warning_recorded( self, warning_message: warnings.WarningMessage, nodeid: str, ) -> None: from _pytest.warnings import warning_record_to_str fslocation = warning_message.filename, warning_message.lineno message = warning_record_to_str(warning_message) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
477
warning_record_to_str
ref
function
message = warning_record_to_str(warning_message)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
479
WarningReport
ref
function
warning_report = WarningReport(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
482
_add_stats
ref
function
self._add_stats("warnings", [warning_report])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
484
pytest_plugin_registered
def
function
def pytest_plugin_registered(self, plugin: _PluggyPlugin) -> None: if self.config.option.traceconfig: msg = f"PLUGIN registered: {plugin}" # XXX This event may happen during setup/teardown time # which unfortunately captures our output here # which gar...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
490
write_line
ref
function
self.write_line(msg)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
492
pytest_deselected
def
function
def pytest_deselected(self, items: Sequence[Item]) -> None: self._add_stats("deselected", items) def pytest_runtest_logstart( self, nodeid: str, location: Tuple[str, Optional[int], str] ) -> None: # Ensure that the path is printed before the # 1st test of a module starts run...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
493
_add_stats
ref
function
self._add_stats("deselected", items)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
495
pytest_runtest_logstart
def
function
def pytest_runtest_logstart( self, nodeid: str, location: Tuple[str, Optional[int], str] ) -> None: # Ensure that the path is printed before the # 1st test of a module starts running. if self.showlongtestinfo: line = self._locationline(nodeid, *location) s...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
501
_locationline
ref
function
line = self._locationline(nodeid, *location)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
502
write_ensure_prefix
ref
function
self.write_ensure_prefix(line, "")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
505
write_fspath_result
ref
function
self.write_fspath_result(nodeid, "")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
508
pytest_runtest_logreport
def
function
def pytest_runtest_logreport(self, report: TestReport) -> None: self._tests_ran = _True rep = report res: Tuple[ str, str, Union[str, Tuple[str, Mapping[str, bool]]] ] = self.config.hook.pytest_report_teststatus(report=rep, config=self.config) category, letter, wo...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
513
pytest_report_teststatus
ref
function
] = self.config.hook.pytest_report_teststatus(report=rep, config=self.config)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
519
_add_stats
ref
function
self._add_stats(category, [rep])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
540
_locationline
ref
function
line = self._locationline(rep.nodeid, *rep.location)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
542
write_ensure_prefix
ref
function
self.write_ensure_prefix(line, word, **markup)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
549
_get_raw_skip_reason
ref
function
reason = _get_raw_skip_reason(rep)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
550
_format_trimmed
ref
function
reason_ = _format_trimmed(" ({})", reason, available_width)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
554
_write_progress_information_filling_space
ref
function
self._write_progress_information_filling_space()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
556
ensure_newline
ref
function
self.ensure_newline()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
560
_get_progress_information_message
ref
function
self._get_progress_information_message() + " ", cyan=True
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
570
_is_last_item
def
function
def _is_last_item(self) -> bool: assert self._session is not None return len(self._progress_nodeids_reported) == self._session.testscollected def pytest_runtest_logfinish(self, nodeid: str) -> None: assert self._session if self.verbosity <= 0 and self._show_progress_info: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
574
pytest_runtest_logfinish
def
function
def pytest_runtest_logfinish(self, nodeid: str) -> None: assert self._session if self.verbosity <= 0 and self._show_progress_info: if self._show_progress_info == "count": num_tests = self._session.testscollected progress_length = len(f" [{num_tests}/{num_t...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
586
_write_progress_information_filling_space
ref
function
self._write_progress_information_filling_space()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
588
_get_main_color
ref
function
main_color, _ = self._get_main_color()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
592
_get_progress_information_message
ref
function
msg = self._get_progress_information_message()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
595
_get_progress_information_message
def
function
def _get_progress_information_message(self) -> str: assert self._session collected = self._session.testscollected if self._show_progress_info == "count": if collected: progress = self._progress_nodeids_reported counter_format = f"{{:{len(str(collec...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
612
_write_progress_information_filling_space
def
function
def _write_progress_information_filling_space(self) -> None: color, _ = self._get_main_color() msg = self._get_progress_information_message() w = self._width_of_current_line fill = self._tw.fullwidth - w - 1 self.write(msg.rjust(fill), flush=_True, **{color: _True}) @pro...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
613
_get_main_color
ref
function
color, _ = self._get_main_color()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
614
_get_progress_information_message
ref
function
msg = self._get_progress_information_message()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
620
_width_of_current_line
def
function
def _width_of_current_line(self) -> int: """Return the width of the current line.""" return self._tw.width_of_current_line def pytest_collection(self) -> None: if self.isatty: if self.config.option.verbose >= 0: self.write("collecting ... ", flush=_True, bold...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
624
pytest_collection
def
function
def pytest_collection(self) -> None: if self.isatty: if self.config.option.verbose >= 0: self.write("collecting ... ", flush=_True, bold=_True) self._collect_report_last_write = timing.time() elif self.config.option.verbose >= 1: self.write("co...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
632
pytest_collectreport
def
function
def pytest_collectreport(self, report: CollectReport) -> None: if report.failed: self._add_stats("error", [report]) elif report.skipped: self._add_stats("skipped", [report]) items = [x for x in report.result if isinstance(x, Item)] self._numcollected += len(it...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
634
_add_stats
ref
function
self._add_stats("error", [report])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
636
_add_stats
ref
function
self._add_stats("skipped", [report])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
640
report_collect
ref
function
self.report_collect()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
642
report_collect
def
function
null
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
673
rewrite
ref
function
self.rewrite(line, bold=True, erase=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
677
write_line
ref
function
self.write_line(line)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
679
hookimpl
ref
function
@hookimpl(trylast=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
680
pytest_sessionstart
def
function
def pytest_sessionstart(self, session: "Session") -> None: self._session = session self._sessionstarttime = timing.time() if not self.showheader: return self.write_sep("=", "test session starts", bold=_True) verinfo = platform.python_version() if not self....
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
685
write_sep
ref
function
self.write_sep("=", "test session starts", bold=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
702
write_line
ref
function
self.write_line(msg)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
703
pytest_report_header
ref
function
lines = self.config.hook.pytest_report_header(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py
src/_pytest/terminal.py
706
_write_report_lines_from_hooks
ref
function
self._write_report_lines_from_hooks(lines)