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/legacypath.py | src/_pytest/legacypath.py | 403 | pytest_configure | def | function | def pytest_configure(config: pytest.Config) -> None:
mp = pytest.MonkeyPatch()
config.add_cleanup(mp.undo)
if config.pluginmanager.has_plugin("tmpdir"):
# Create TmpdirFactory and attach it to the config object.
#
# This is to comply with existing plugins which expect the handler to... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py | src/_pytest/legacypath.py | 404 | MonkeyPatch | ref | function | mp = pytest.MonkeyPatch()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py | src/_pytest/legacypath.py | 405 | add_cleanup | ref | function | config.add_cleanup(mp.undo)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py | src/_pytest/legacypath.py | 407 | has_plugin | ref | function | if config.pluginmanager.has_plugin("tmpdir"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py | src/_pytest/legacypath.py | 419 | TempdirFactory | ref | function | _tmpdirhandler = TempdirFactory(tmp_path_factory, _ispytest=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py | src/_pytest/legacypath.py | 422 | register | ref | function | config.pluginmanager.register(LegacyTmpdirPlugin, "legacypath-tmpdir")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py | src/_pytest/legacypath.py | 455 | pytest_plugin_registered | def | function | def pytest_plugin_registered(
plugin: object, manager: pytest.PytestPluginManager
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py | src/_pytest/legacypath.py | 460 | get_plugin | ref | function | is_pytester = plugin is manager.get_plugin("pytester")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py | src/_pytest/legacypath.py | 461 | is_registered | ref | function | if is_pytester and not manager.is_registered(LegacyTestdirPlugin):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/legacypath.py | src/_pytest/legacypath.py | 462 | register | ref | function | manager.register(LegacyTestdirPlugin, "legacypath-pytester")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 44 | _remove_ansi_escape_sequences | def | function | def _remove_ansi_escape_sequences(text: str) -> str:
return _ANSI_ESCAPE_SEQ.sub("", text)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 48 | ColoredLevelFormatter | def | class | __init__ add_color_level format |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 70 | add_color_level | ref | function | self.add_color_level(level, *color_opts)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 72 | add_color_level | def | function | def add_color_level(self, level: int, *color_opts: str) -> None:
"""Add or update color opts for a log level.
:param level:
Log level to apply a style to, e.g. ``logging.INFO``.
:param color_opts:
ANSI escape sequence color options. Capitalized colors indicates
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 92 | getLevelName | ref | function | formatted_levelname = levelname_fmt % {"levelname": logging.getLevelName(level)}
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 96 | markup | ref | function | colorized_formatted_levelname = self._terminalwriter.markup(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 109 | PercentStyleMultiline | def | class | __init__ _get_auto_indent format |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 118 | _get_auto_indent | ref | function | self._auto_indent = self._get_auto_indent(auto_indent)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 121 | _get_auto_indent | def | function | def _get_auto_indent(auto_indent_option: Union[int, str, bool, None]) -> int:
"""Determine the current auto indentation setting.
Specify auto indent behavior (on/off/fixed) by passing in
extra={"auto_indent": [value]} to the call to logging.log() or
using a --log-auto-indent [value]... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 168 | _strtobool | ref | function | if _strtobool(auto_indent_option):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 179 | _get_auto_indent | ref | function | auto_indent = self._get_auto_indent(record.auto_indent) # type: ignore[attr-defined]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 188 | _remove_ansi_escape_sequences | ref | function | indentation = _remove_ansi_escape_sequences(formatted).find(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 199 | get_option_ini | def | function | def get_option_ini(config: Config, *names: str):
for name in names:
ret = config.getoption(name) # 'default' arg won't work as expected
if ret is None:
ret = config.getini(name)
if ret:
return ret
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 201 | getoption | ref | function | ret = config.getoption(name) # 'default' arg won't work as expected
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 203 | getini | ref | function | ret = config.getini(name)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 208 | pytest_addoption | def | function | def pytest_addoption(parser: Parser) -> None:
"""Add options to control log capturing."""
group = parser.getgroup("logging")
def add_option_ini(option, dest, default=None, type=None, **kwargs):
parser.addini(
dest, default=default, type=type, help="default value for " + option
)... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 210 | getgroup | ref | function | group = parser.getgroup("logging")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 212 | add_option_ini | def | function | def add_option_ini(option, dest, default=None, type=None, **kwargs):
parser.addini(
dest, default=default, type=type, help="default value for " + option
)
group.addoption(option, dest=dest, **kwargs)
add_option_ini(
"--log-level",
dest="log_level",
de... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 213 | addini | ref | function | parser.addini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 216 | addoption | ref | function | group.addoption(option, dest=dest, **kwargs)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 218 | add_option_ini | ref | function | add_option_ini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 229 | add_option_ini | ref | function | add_option_ini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 235 | add_option_ini | ref | function | add_option_ini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 241 | addini | ref | function | parser.addini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 247 | add_option_ini | ref | function | add_option_ini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 250 | add_option_ini | ref | function | add_option_ini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 256 | add_option_ini | ref | function | add_option_ini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 262 | add_option_ini | ref | function | add_option_ini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 268 | add_option_ini | ref | function | add_option_ini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 274 | add_option_ini | ref | function | add_option_ini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 280 | add_option_ini | ref | function | add_option_ini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 286 | add_option_ini | ref | function | add_option_ini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 298 | catching_logs | def | class | __init__ __enter__ __exit__ |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 308 | getLogger | ref | function | root_logger = logging.getLogger()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 310 | setLevel | ref | function | self.handler.setLevel(self.level)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 311 | addHandler | ref | function | root_logger.addHandler(self.handler)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 314 | setLevel | ref | function | root_logger.setLevel(min(self.orig_level, self.level))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 318 | getLogger | ref | function | root_logger = logging.getLogger()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 320 | setLevel | ref | function | root_logger.setLevel(self.orig_level)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 321 | removeHandler | ref | function | root_logger.removeHandler(self.handler)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 324 | LogCaptureHandler | def | class | __init__ emit reset handleError |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 334 | emit | def | function | def emit(self, record: logging.LogRecord) -> None:
"""Keep the log records in a list in addition to the log text."""
self.records.append(record)
super().emit(record)
def reset(self) -> None:
self.records = []
self.stream = StringIO()
def handleError(self, record: lo... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 337 | emit | ref | function | super().emit(record)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 339 | reset | def | function | def reset(self) -> None:
self.records = []
self.stream = StringIO()
def handleError(self, record: logging.LogRecord) -> None:
if logging.raiseExceptions:
# Fail the test if the log message is bad (emit failed).
# The default behavior of logging is to print "Loggi... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 343 | handleError | def | function | def handleError(self, record: logging.LogRecord) -> None:
if logging.raiseExceptions:
# Fail the test if the log message is bad (emit failed).
# The default behavior of logging is to print "Logging error"
# to stderr with the call stack and some extra details.
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 353 | LogCaptureFixture | def | class | __init__ _finalize handler get_records text records record_tuples messages clear set_level at_level |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 357 | check_ispytest | ref | function | check_ispytest(_ispytest)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 363 | _finalize | def | function | def _finalize(self) -> None:
"""Finalize the fixture.
This restores the log levels changed by :meth:`set_level`.
"""
# Restore log levels.
if self._initial_handler_level is not None:
self.handler.setLevel(self._initial_handler_level)
for logger_name, leve... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 370 | setLevel | ref | function | self.handler.setLevel(self._initial_handler_level)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 372 | getLogger | ref | function | logger = logging.getLogger(logger_name)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 373 | setLevel | ref | function | logger.setLevel(level)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 376 | handler | def | function | def handler(self) -> LogCaptureHandler:
"""Get the logging handler used by the fixture.
:rtype: LogCaptureHandler
"""
return self._item.stash[caplog_handler_key]
def get_records(self, when: str) -> List[logging.LogRecord]:
"""Get the logging records for one of the possi... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 383 | get_records | def | function | def get_records(self, when: str) -> List[logging.LogRecord]:
"""Get the logging records for one of the possible test phases.
:param str when:
Which test phase to obtain the records from. Valid values are: "setup", "call" and "teardown".
:returns: The list of captured records at... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 397 | text | def | function | def text(self) -> str:
"""The formatted log text."""
return _remove_ansi_escape_sequences(self.handler.stream.getvalue())
@property
def records(self) -> List[logging.LogRecord]:
"""The list of log records."""
return self.handler.records
@property
def record_tuples(s... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 399 | _remove_ansi_escape_sequences | ref | function | return _remove_ansi_escape_sequences(self.handler.stream.getvalue())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 402 | records | def | function | def records(self) -> List[logging.LogRecord]:
"""The list of log records."""
return self.handler.records
@property
def record_tuples(self) -> List[Tuple[str, int, str]]:
"""A list of a stripped down version of log records intended
for use in assertion comparison.
Th... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 407 | record_tuples | def | function | def record_tuples(self) -> List[Tuple[str, int, str]]:
"""A list of a stripped down version of log records intended
for use in assertion comparison.
The format of the tuple is:
(logger_name, log_level, message)
"""
return [(r.name, r.levelno, r.getMessage()) for... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 415 | getMessage | ref | function | return [(r.name, r.levelno, r.getMessage()) for r in self.records]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 418 | messages | def | function | def messages(self) -> List[str]:
"""A list of format-interpolated log messages.
Unlike 'records', which contains the format string and parameters for
interpolation, log messages in this list are all interpolated.
Unlike 'text', which contains the output from the handler, log
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 434 | getMessage | ref | function | return [r.getMessage() for r in self.records]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 438 | reset | ref | function | self.handler.reset()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 440 | set_level | def | function | def set_level(self, level: Union[int, str], logger: Optional[str] = None) -> None:
"""Set the level of a logger for the duration of a test.
.. versionchanged:: 3.4
The levels of the loggers changed by this function will be
restored to their initial values at the end of the t... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 450 | getLogger | ref | function | logger_obj = logging.getLogger(logger)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 453 | setLevel | ref | function | logger_obj.setLevel(level)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 456 | setLevel | ref | function | self.handler.setLevel(level)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 459 | at_level | def | function | def at_level(
self, level: Union[int, str], logger: Optional[str] = None
) -> Generator[None, None, None]:
"""Context manager that sets the level for capturing of logs. After
the end of the 'with' statement the level is restored to its original
value.
:param int level: T... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 469 | getLogger | ref | function | logger_obj = logging.getLogger(logger)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 471 | setLevel | ref | function | logger_obj.setLevel(level)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 473 | setLevel | ref | function | self.handler.setLevel(level)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 477 | setLevel | ref | function | logger_obj.setLevel(orig_level)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 478 | setLevel | ref | function | self.handler.setLevel(handler_orig_level)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 482 | caplog | def | function | def caplog(request: FixtureRequest) -> Generator[LogCaptureFixture, None, None]:
"""Access and control log capturing.
Captured logs are available through the following properties/methods::
* caplog.messages -> list of format-interpolated log messages
* caplog.text -> string containin... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 493 | LogCaptureFixture | ref | function | result = LogCaptureFixture(request.node, _ispytest=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 495 | _finalize | ref | function | result._finalize()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 498 | get_log_level_for_setting | def | function | def get_log_level_for_setting(config: Config, *setting_names: str) -> Optional[int]:
for setting_name in setting_names:
log_level = config.getoption(setting_name)
if log_level is None:
log_level = config.getini(setting_name)
if log_level:
break
else:
retur... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 500 | getoption | ref | function | log_level = config.getoption(setting_name)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 502 | getini | ref | function | log_level = config.getini(setting_name)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 514 | UsageError | ref | function | raise UsageError(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 522 | hookimpl | ref | function | @hookimpl(trylast=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 523 | pytest_configure | def | function | def pytest_configure(config: Config) -> None:
config.pluginmanager.register(LoggingPlugin(config), "logging-plugin")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 524 | register | ref | function | config.pluginmanager.register(LoggingPlugin(config), "logging-plugin")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 524 | LoggingPlugin | ref | function | config.pluginmanager.register(LoggingPlugin(config), "logging-plugin")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 527 | LoggingPlugin | def | class | __init__ _create_formatter set_log_path _log_cli_enabled pytest_sessionstart pytest_collection pytest_runtestloop pytest_runtest_logstart pytest_runtest_logreport _runtest_for pytest_runtest_setup pytest_runtest_call pytest_runtest_teardown pytest_runtest_logfinish pytest_sessionfinish pytest_unconfigure |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 539 | _create_formatter | ref | function | self.formatter = self._create_formatter(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 540 | get_option_ini | ref | function | get_option_ini(config, "log_format"),
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 541 | get_option_ini | ref | function | get_option_ini(config, "log_date_format"),
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 542 | get_option_ini | ref | function | get_option_ini(config, "log_auto_indent"),
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 544 | get_log_level_for_setting | ref | function | self.log_level = get_log_level_for_setting(config, "log_level")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 545 | LogCaptureHandler | ref | function | self.caplog_handler = LogCaptureHandler()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/logging.py | src/_pytest/logging.py | 546 | setFormatter | ref | function | self.caplog_handler.setFormatter(self.formatter)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.