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/runner.py
src/_pytest/runner.py
85
write_sep
ref
function
tr.write_sep("=", "slowest durations")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
87
write_sep
ref
function
tr.write_sep("=", "slowest %s durations" % durations)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
92
write_line
ref
function
tr.write_line("")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
93
write_line
ref
function
tr.write_line(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
98
write_line
ref
function
tr.write_line(f"{rep.duration:02.2f}s {rep.when:<8} {rep.nodeid}")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
101
pytest_sessionstart
def
function
def pytest_sessionstart(session: "Session") -> None: session._setupstate = SetupState()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
102
SetupState
ref
function
session._setupstate = SetupState()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
105
pytest_sessionfinish
def
function
def pytest_sessionfinish(session: "Session") -> None: session._setupstate.teardown_exact(None)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
106
teardown_exact
ref
function
session._setupstate.teardown_exact(None)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
109
pytest_runtest_protocol
def
function
def pytest_runtest_protocol(item: Item, nextitem: Optional[Item]) -> bool: ihook = item.ihook ihook.pytest_runtest_logstart(nodeid=item.nodeid, location=item.location) runtestprotocol(item, nextitem=nextitem) ihook.pytest_runtest_logfinish(nodeid=item.nodeid, location=item.location) return _True
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
111
pytest_runtest_logstart
ref
function
ihook.pytest_runtest_logstart(nodeid=item.nodeid, location=item.location)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
112
runtestprotocol
ref
function
runtestprotocol(item, nextitem=nextitem)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
113
pytest_runtest_logfinish
ref
function
ihook.pytest_runtest_logfinish(nodeid=item.nodeid, location=item.location)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
117
runtestprotocol
def
function
def runtestprotocol( item: Item, log: bool = _True, nextitem: Optional[Item] = None
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
124
_initrequest
ref
function
item._initrequest() # type: ignore[attr-defined]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
125
call_and_report
ref
function
rep = call_and_report(item, "setup", log)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
128
getoption
ref
function
if item.config.getoption("setupshow", False):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
129
show_test_item
ref
function
show_test_item(item)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
130
getoption
ref
function
if not item.config.getoption("setuponly", False):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
131
call_and_report
ref
function
reports.append(call_and_report(item, "call", log))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
132
call_and_report
ref
function
reports.append(call_and_report(item, "teardown", log, nextitem=nextitem))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
141
show_test_item
def
function
def show_test_item(item: Item) -> None: """Show test function, parameters and the fixtures of the test item.""" tw = item.config.get_terminal_writer() tw.line() tw.write(" " * 8) tw.write(item.nodeid) used_fixtures = sorted(getattr(item, "fixturenames", [])) if used_fixtures: tw.writ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
143
get_terminal_writer
ref
function
tw = item.config.get_terminal_writer()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
144
line
ref
function
tw.line()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
150
flush
ref
function
tw.flush()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
153
pytest_runtest_setup
def
function
def pytest_runtest_setup(item: Item) -> None: _update_current_test_var(item, "setup") item.session._setupstate.setup(item)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
154
_update_current_test_var
ref
function
_update_current_test_var(item, "setup")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
155
setup
ref
function
item.session._setupstate.setup(item)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
158
pytest_runtest_call
def
function
def pytest_runtest_call(item: Item) -> None: _update_current_test_var(item, "call") try: del sys.last_type del sys.last_value del sys.last_traceback except AttributeError: pass try: item.runtest() except Exception as e: # Store trace info to allow post...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
159
_update_current_test_var
ref
function
_update_current_test_var(item, "call")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
167
runtest
ref
function
item.runtest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
178
pytest_runtest_teardown
def
function
def pytest_runtest_teardown(item: Item, nextitem: Optional[Item]) -> None: _update_current_test_var(item, "teardown") item.session._setupstate.teardown_exact(nextitem) _update_current_test_var(item, None)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
179
_update_current_test_var
ref
function
_update_current_test_var(item, "teardown")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
180
teardown_exact
ref
function
item.session._setupstate.teardown_exact(nextitem)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
181
_update_current_test_var
ref
function
_update_current_test_var(item, None)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
184
_update_current_test_var
def
function
def _update_current_test_var( item: Item, when: Optional["Literal['setup', 'call', 'teardown']"]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
201
pytest_report_teststatus
def
function
def pytest_report_teststatus(report: BaseReport) -> Optional[Tuple[str, str, str]]: if report.when in ("setup", "teardown"): if report.failed: # category, shortletter, verbose-word return "error", "E", "ERROR" elif report.skipped: return "skipped", "s", "SKIP...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
217
call_and_report
def
function
def call_and_report( item: Item, when: "Literal['setup', 'call', 'teardown']", log: bool = _True, **kwds
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
220
call_runtest_hook
ref
function
call = call_runtest_hook(item, when, **kwds)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
222
pytest_runtest_makereport
ref
function
report: TestReport = hook.pytest_runtest_makereport(item=item, call=call)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
224
pytest_runtest_logreport
ref
function
hook.pytest_runtest_logreport(report=report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
225
check_interactive_exception
ref
function
if check_interactive_exception(call, report):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
226
pytest_exception_interact
ref
function
hook.pytest_exception_interact(node=item, call=call, report=report)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
230
check_interactive_exception
def
function
def check_interactive_exception(call: "CallInfo[object]", report: BaseReport) -> bool: """Check whether the call raised an exception that should be reported as interactive.""" if call.excinfo is None: # Didn't raise. return _False if hasattr(report, "wasxfail"): # Exception was e...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
245
call_runtest_hook
def
function
def call_runtest_hook( item: Item, when: "Literal['setup', 'call', 'teardown']", **kwds
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
257
getoption
ref
function
if not item.config.getoption("usepdb", False):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
259
from_call
ref
function
return CallInfo.from_call(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
260
ihook
ref
function
lambda: ihook(item=item, **kwds), when=when, reraise=reraise
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
269
CallInfo
def
class
__init__ result from_call __repr__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
295
check_ispytest
ref
function
check_ispytest(_ispytest)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
304
result
def
function
def result(self) -> TResult: """The return value of the call, if it didn't raise. Can only be accessed if excinfo is None. """ if self.excinfo is not None: raise AttributeError(f"{self!r} has no valid result") # The cast is safe because an exception wasn't raised...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
317
from_call
def
function
def from_call( cls, func: "Callable[[], TResult]", when: "Literal['collect', 'setup', 'call', 'teardown']", reraise: Optional[ Union[Type[BaseException], Tuple[Type[BaseException], ...]] ] = None, ) -> "CallInfo[TResult]": """Call func, wrapping the re...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
336
time
ref
function
start = timing.time()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
337
perf_counter
ref
function
precise_start = timing.perf_counter()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
339
func
ref
function
result: Optional[TResult] = func()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
341
from_current
ref
function
excinfo = ExceptionInfo.from_current()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
346
perf_counter
ref
function
precise_stop = timing.perf_counter()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
348
time
ref
function
stop = timing.time()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
349
cls
ref
function
return cls(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
365
pytest_runtest_makereport
def
function
def pytest_runtest_makereport(item: Item, call: CallInfo[None]) -> TestReport: return TestReport.from_item_and_call(item, call)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
366
from_item_and_call
ref
function
return TestReport.from_item_and_call(item, call)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
369
pytest_make_collect_report
def
function
def pytest_make_collect_report(collector: Collector) -> CollectReport: call = CallInfo.from_call(lambda: list(collector.collect()), "collect") longrepr: Union[None, Tuple[str, int, str], str, TerminalRepr] = None if not call.excinfo: outcome: Literal["passed", "skipped", "failed"] = "passed" els...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
370
from_call
ref
function
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
370
collect
ref
function
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
387
_repr_failure_py
ref
function
r_ = collector._repr_failure_py(call.excinfo, "line")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
394
repr_failure
ref
function
errorinfo = collector.repr_failure(call.excinfo)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
397
CollectErrorRepr
ref
function
errorinfo = CollectErrorRepr(errorinfo)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
400
CollectReport
ref
function
rep = CollectReport(collector.nodeid, outcome, longrepr, result)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
405
SetupState
def
class
__init__ setup addfinalizer teardown_exact
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
481
setup
def
function
def setup(self, item: Item) -> None: """Setup objects along the collector chain to the item.""" needed_collectors = item.listchain() # If a collector fails its setup, fail its entire subtree of items. # The setup is not retried for each item - the same exception is used. for...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
483
listchain
ref
function
needed_collectors = item.listchain()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
497
setup
ref
function
col.setup()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
502
addfinalizer
def
function
def addfinalizer(self, finalizer: Callable[[], object], node: Node) -> None: """Attach a finalizer to the given node. The node must be currently active in the stack. """ assert node and not isinstance(node, tuple) assert callable(finalizer) assert node in self.stack,...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
512
teardown_exact
def
function
def teardown_exact(self, nextitem: Optional[Item]) -> None: """Teardown the current stack up until reaching nodes that nextitem also descends from. When nextitem is None (meaning we're at the last item), the entire stack is torn down. """ needed_collectors = nextitem...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
519
listchain
ref
function
needed_collectors = nextitem and nextitem.listchain() or []
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
528
fin
ref
function
fin()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
540
collect_one_node
def
function
def collect_one_node(collector: Collector) -> CollectReport: ihook = collector.ihook ihook.pytest_collectstart(collector=collector) rep: CollectReport = ihook.pytest_make_collect_report(collector=collector) call = rep.__dict__.pop("call", None) if call and check_interactive_exception(call, rep): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
542
pytest_collectstart
ref
function
ihook.pytest_collectstart(collector=collector)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
543
pytest_make_collect_report
ref
function
rep: CollectReport = ihook.pytest_make_collect_report(collector=collector)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
545
check_interactive_exception
ref
function
if call and check_interactive_exception(call, rep):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/runner.py
src/_pytest/runner.py
546
pytest_exception_interact
ref
function
ihook.pytest_exception_interact(node=collector, call=call, report=rep)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/scope.py
src/_pytest/scope.py
21
Scope
def
class
next_lower next_higher __lt__ from_user
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/scope.py
src/_pytest/scope.py
41
next_lower
def
function
def next_lower(self) -> "Scope": """Return the next lower scope.""" index = _SCOPE_INDICES[self] if index == 0: raise ValueError(f"{self} is the lower-most scope") return _ALL_SCOPES[index - 1] def next_higher(self) -> "Scope": """Return the next higher scope...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/scope.py
src/_pytest/scope.py
48
next_higher
def
function
def next_higher(self) -> "Scope": """Return the next higher scope.""" index = _SCOPE_INDICES[self] if index == len(_SCOPE_INDICES) - 1: raise ValueError(f"{self} is the upper-most scope") return _ALL_SCOPES[index + 1] def __lt__(self, other: "Scope") -> bool: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/scope.py
src/_pytest/scope.py
61
from_user
def
function
def from_user( cls, scope_name: "_ScopeName", descr: str, where: Optional[str] = None ) -> "Scope": """ Given a scope name from the user, return the equivalent Scope enum. Should be used whenever we want to convert a user provided scope name to its enum object. If the sc...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/scope.py
src/_pytest/scope.py
74
Scope
ref
function
scope = Scope(scope_name)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/scope.py
src/_pytest/scope.py
76
fail
ref
function
fail(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py
src/_pytest/setuponly.py
14
pytest_addoption
def
function
def pytest_addoption(parser: Parser) -> None: group = parser.getgroup("debugconfig") group.addoption( "--setuponly", "--setup-only", action="store_true", help="only setup fixtures, do not execute tests.", ) group.addoption( "--setupshow", "--setup-show", ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py
src/_pytest/setuponly.py
15
getgroup
ref
function
group = parser.getgroup("debugconfig")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py
src/_pytest/setuponly.py
16
addoption
ref
function
group.addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py
src/_pytest/setuponly.py
22
addoption
ref
function
group.addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py
src/_pytest/setuponly.py
30
hookimpl
ref
function
@pytest.hookimpl(hookwrapper=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py
src/_pytest/setuponly.py
31
pytest_fixture_setup
def
function
def pytest_fixture_setup( fixturedef: FixtureDef[object], request: SubRequest
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py
src/_pytest/setuponly.py
41
ids
ref
function
param = fixturedef.ids(request.param)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py
src/_pytest/setuponly.py
47
_show_fixture_action
ref
function
_show_fixture_action(fixturedef, "SETUP")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py
src/_pytest/setuponly.py
50
pytest_fixture_post_finalizer
def
function
def pytest_fixture_post_finalizer(fixturedef: FixtureDef[object]) -> None: if fixturedef.cached_result is not None: config = fixturedef._fixturemanager.config if config.option.setupshow: _show_fixture_action(fixturedef, "TEARDOWN") if hasattr(fixturedef, "cached_param"): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py
src/_pytest/setuponly.py
54
_show_fixture_action
ref
function
_show_fixture_action(fixturedef, "TEARDOWN")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py
src/_pytest/setuponly.py
59
_show_fixture_action
def
function
def _show_fixture_action(fixturedef: FixtureDef[object], msg: str) -> None: config = fixturedef._fixturemanager.config capman = config.pluginmanager.getplugin("capturemanager") if capman: capman.suspend_global_capture() tw = config.get_terminal_writer() tw.line() # Use smaller indentati...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py
src/_pytest/setuponly.py
61
getplugin
ref
function
capman = config.pluginmanager.getplugin("capturemanager")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py
src/_pytest/setuponly.py
63
suspend_global_capture
ref
function
capman.suspend_global_capture()