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/setuponly.py | src/_pytest/setuponly.py | 65 | get_terminal_writer | ref | function | tw = config.get_terminal_writer()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py | src/_pytest/setuponly.py | 66 | line | ref | function | tw.line()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py | src/_pytest/setuponly.py | 69 | write | ref | function | tw.write(" " * 2 * scope_indent)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py | src/_pytest/setuponly.py | 70 | write | ref | function | tw.write(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py | src/_pytest/setuponly.py | 81 | write | ref | function | tw.write(" (fixtures used: {})".format(", ".join(deps)))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py | src/_pytest/setuponly.py | 84 | write | ref | function | tw.write(f"[{saferepr(fixturedef.cached_param, maxsize=42)}]") # type: ignore[attr-defined]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py | src/_pytest/setuponly.py | 84 | saferepr | ref | function | tw.write(f"[{saferepr(fixturedef.cached_param, maxsize=42)}]") # type: ignore[attr-defined]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py | src/_pytest/setuponly.py | 86 | flush | ref | function | tw.flush()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py | src/_pytest/setuponly.py | 89 | resume_global_capture | ref | function | capman.resume_global_capture()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py | src/_pytest/setuponly.py | 92 | hookimpl | ref | function | @pytest.hookimpl(tryfirst=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setuponly.py | src/_pytest/setuponly.py | 93 | pytest_cmdline_main | def | function | def pytest_cmdline_main(config: Config) -> Optional[Union[int, ExitCode]]:
if config.option.setuponly:
config.option.setupshow = _True
return None
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setupplan.py | src/_pytest/setupplan.py | 11 | pytest_addoption | def | function | def pytest_addoption(parser: Parser) -> None:
group = parser.getgroup("debugconfig")
group.addoption(
"--setupplan",
"--setup-plan",
action="store_true",
help="show what fixtures and tests would be executed but "
"don't execute anything.",
)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setupplan.py | src/_pytest/setupplan.py | 12 | getgroup | ref | function | group = parser.getgroup("debugconfig")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setupplan.py | src/_pytest/setupplan.py | 13 | addoption | ref | function | group.addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setupplan.py | src/_pytest/setupplan.py | 22 | hookimpl | ref | function | @pytest.hookimpl(tryfirst=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setupplan.py | src/_pytest/setupplan.py | 23 | pytest_fixture_setup | def | function | def pytest_fixture_setup(
fixturedef: FixtureDef[object], request: SubRequest
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setupplan.py | src/_pytest/setupplan.py | 28 | cache_key | ref | function | my_cache_key = fixturedef.cache_key(request)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setupplan.py | src/_pytest/setupplan.py | 34 | hookimpl | ref | function | @pytest.hookimpl(tryfirst=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/setupplan.py | src/_pytest/setupplan.py | 35 | pytest_cmdline_main | def | function | def pytest_cmdline_main(config: Config) -> Optional[Union[int, ExitCode]]:
if config.option.setupplan:
config.option.setuponly = _True
config.option.setupshow = _True
return None
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 26 | pytest_addoption | def | function | def pytest_addoption(parser: Parser) -> None:
group = parser.getgroup("general")
group.addoption(
"--runxfail",
action="store_true",
dest="runxfail",
default=_False,
help="report the results of xfail tests as if they were not marked",
)
parser.addini(
"xf... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 27 | getgroup | ref | function | group = parser.getgroup("general")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 28 | addoption | ref | function | group.addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 36 | addini | ref | function | parser.addini(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 45 | pytest_configure | def | function | def pytest_configure(config: Config) -> None:
if config.option.runxfail:
# yay a hack
import pytest
old = pytest.xfail
config.add_cleanup(lambda: setattr(pytest, "xfail", old))
def nop(*args, **kwargs):
pass
nop.Exception = xfail.Exception # type: igno... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 51 | add_cleanup | ref | function | config.add_cleanup(lambda: setattr(pytest, "xfail", old))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 53 | nop | def | function | def nop(*args, **kwargs):
pass
nop.Exception = xfail.Exception # type: ignore[attr-defined]
setattr(pytest, "xfail", nop)
config.addinivalue_line(
"markers",
"skip(reason=None): skip the given test function with an optional reason. "
'Example: skip(reas... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 59 | addinivalue_line | ref | function | config.addinivalue_line(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 65 | addinivalue_line | ref | function | config.addinivalue_line(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 72 | addinivalue_line | ref | function | config.addinivalue_line(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 84 | evaluate_condition | def | function | def evaluate_condition(item: Item, mark: Mark, condition: object) -> Tuple[bool, str]:
"""Evaluate a single skipif/xfail condition.
If an old-style string condition is given, it is eval()'d, otherwise the
condition is bool()'d. If this fails, an appropriately formatted pytest.fail
is raised.
Retur... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 102 | pytest_markeval_namespace | ref | function | item.ihook.pytest_markeval_namespace(config=item.config)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 124 | fail | ref | function | fail("\n".join(msglines), pytrace=False)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 131 | fail | ref | function | fail("\n".join(msglines), pytrace=False)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 142 | fail | ref | function | fail("\n".join(msglines), pytrace=False)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 154 | fail | ref | function | fail(msg, pytrace=False)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 160 | Skip | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 166 | evaluate_skip_marks | def | function | def evaluate_skip_marks(item: Item) -> Optional[Skip]:
"""Evaluate skip and skipif marks on item, returning Skip if triggered."""
for mark in item.iter_markers(name="skipif"):
if "condition" not in mark.kwargs:
conditions = mark.args
else:
conditions = (mark.kwargs["condi... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 168 | iter_markers | ref | function | for mark in item.iter_markers(name="skipif"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 177 | Skip | ref | function | return Skip(reason)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 181 | evaluate_condition | ref | function | result, reason = evaluate_condition(item, mark, condition)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 183 | Skip | ref | function | return Skip(reason)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 185 | iter_markers | ref | function | for mark in item.iter_markers(name="skip"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 187 | Skip | ref | function | return Skip(*mark.args, **mark.kwargs)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 195 | Xfail | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 204 | evaluate_xfail_marks | def | function | def evaluate_xfail_marks(item: Item) -> Optional[Xfail]:
"""Evaluate xfail marks on item, returning Xfail if triggered."""
for mark in item.iter_markers(name="xfail"):
run = mark.kwargs.get("run", _True)
strict = mark.kwargs.get("strict", item.config.getini("xfail_strict"))
raises = mark... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 206 | iter_markers | ref | function | for mark in item.iter_markers(name="xfail"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 208 | getini | ref | function | strict = mark.kwargs.get("strict", item.config.getini("xfail_strict"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 218 | Xfail | ref | function | return Xfail(reason, run, strict, raises)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 222 | evaluate_condition | ref | function | result, reason = evaluate_condition(item, mark, condition)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 224 | Xfail | ref | function | return Xfail(reason, run, strict, raises)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 233 | hookimpl | ref | function | @hookimpl(tryfirst=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 234 | pytest_runtest_setup | def | function | def pytest_runtest_setup(item: Item) -> None:
skipped = evaluate_skip_marks(item)
if skipped:
raise skip.Exception(skipped.reason, _use_item_location=_True)
item.stash[xfailed_key] = xfailed = evaluate_xfail_marks(item)
if xfailed and not item.config.option.runxfail and not xfailed.run:
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 235 | evaluate_skip_marks | ref | function | skipped = evaluate_skip_marks(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 239 | evaluate_xfail_marks | ref | function | item.stash[xfailed_key] = xfailed = evaluate_xfail_marks(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 241 | xfail | ref | function | xfail("[NOTRUN] " + xfailed.reason)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 244 | hookimpl | ref | function | @hookimpl(hookwrapper=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 245 | pytest_runtest_call | def | function | def pytest_runtest_call(item: Item) -> Generator[None, None, None]:
xfailed = item.stash.get(xfailed_key, None)
if xfailed is None:
item.stash[xfailed_key] = xfailed = evaluate_xfail_marks(item)
if xfailed and not item.config.option.runxfail and not xfailed.run:
xfail("[NOTRUN] " + xfailed.... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 248 | evaluate_xfail_marks | ref | function | item.stash[xfailed_key] = xfailed = evaluate_xfail_marks(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 251 | xfail | ref | function | xfail("[NOTRUN] " + xfailed.reason)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 258 | evaluate_xfail_marks | ref | function | item.stash[xfailed_key] = xfailed = evaluate_xfail_marks(item)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 261 | hookimpl | ref | function | @hookimpl(hookwrapper=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 262 | pytest_runtest_makereport | def | function | def pytest_runtest_makereport(item: Item, call: CallInfo[None]):
outcome = yield
rep = outcome.get_result()
xfailed = item.stash.get(xfailed_key, None)
if item.config.option.runxfail:
pass # don't interfere
elif call.excinfo and isinstance(call.excinfo.value, xfail.Exception):
asser... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 264 | get_result | ref | function | rep = outcome.get_result()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/skipping.py | src/_pytest/skipping.py | 289 | pytest_report_teststatus | def | function | def pytest_report_teststatus(report: BaseReport) -> Optional[Tuple[str, str, str]]:
if hasattr(report, "wasxfail"):
if report.skipped:
return "xfailed", "x", "XFAIL"
elif report.passed:
return "xpassed", "X", "XPASS"
return None
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stash.py | src/_pytest/stash.py | 15 | StashKey | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stash.py | src/_pytest/stash.py | 26 | Stash | def | class | __init__ __setitem__ __getitem__ get setdefault __delitem__ __contains__ __len__ |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 17 | pytest_addoption | def | function | def pytest_addoption(parser: Parser) -> None:
group = parser.getgroup("general")
group.addoption(
"--sw",
"--stepwise",
action="store_true",
default=_False,
dest="stepwise",
help="exit on test failure and continue from last failing test next time",
)
group... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 18 | getgroup | ref | function | group = parser.getgroup("general")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 19 | addoption | ref | function | group.addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 27 | addoption | ref | function | group.addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 39 | pytest_configure | def | function | def pytest_configure(config: Config) -> None:
if config.option.stepwise_skip:
# allow --stepwise-skip to work on it's own merits.
config.option.stepwise = _True
if config.getoption("stepwise"):
config.pluginmanager.register(StepwisePlugin(config), "stepwiseplugin")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 43 | getoption | ref | function | if config.getoption("stepwise"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 44 | register | ref | function | config.pluginmanager.register(StepwisePlugin(config), "stepwiseplugin")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 44 | StepwisePlugin | ref | function | config.pluginmanager.register(StepwisePlugin(config), "stepwiseplugin")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 47 | pytest_sessionfinish | def | function | def pytest_sessionfinish(session: Session) -> None:
if not session.config.getoption("stepwise"):
assert session.config.cache is not None
# Clear the list of failing tests if the plugin is not active.
session.config.cache.set(STEPWISE_CACHE_DIR, [])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 48 | getoption | ref | function | if not session.config.getoption("stepwise"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 54 | StepwisePlugin | def | class | __init__ pytest_sessionstart pytest_collection_modifyitems pytest_runtest_logreport pytest_report_collectionfinish pytest_sessionfinish |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 62 | getoption | ref | function | self.skip: bool = config.getoption("stepwise_skip")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 64 | pytest_sessionstart | def | function | def pytest_sessionstart(self, session: Session) -> None:
self.session = session
def pytest_collection_modifyitems(
self, config: Config, items: List[nodes.Item]
) -> None:
if not self.lastfailed:
self.report_status = "no previously failed tests, not skipping."
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 67 | pytest_collection_modifyitems | def | function | def pytest_collection_modifyitems(
self, config: Config, items: List[nodes.Item]
) -> None:
if not self.lastfailed:
self.report_status = "no previously failed tests, not skipping."
return
# check all item nodes until we find a match on last failed
failed_... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 89 | pytest_deselected | ref | function | config.hook.pytest_deselected(items=deselected)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 91 | pytest_runtest_logreport | def | function | def pytest_runtest_logreport(self, report: TestReport) -> None:
if report.failed:
if self.skip:
# Remove test from the failed ones (if it exists) and unset the skip option
# to make sure the following tests will not be skipped.
if report.nodeid == ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 115 | pytest_report_collectionfinish | def | function | def pytest_report_collectionfinish(self) -> Optional[str]:
if self.config.getoption("verbose") >= 0 and self.report_status:
return f"stepwise: {self.report_status}"
return None
def pytest_sessionfinish(self) -> None:
self.cache.set(STEPWISE_CACHE_DIR, self.lastfailed)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 116 | getoption | ref | function | if self.config.getoption("verbose") >= 0 and self.report_status:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/stepwise.py | src/_pytest/stepwise.py | 120 | pytest_sessionfinish | def | function | def pytest_sessionfinish(self) -> None:
self.cache.set(STEPWISE_CACHE_DIR, self.lastfailed)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 74 | MoreQuietAction | def | class | __init__ __call__ |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 111 | pytest_addoption | def | function | def pytest_addoption(parser: Parser) -> None:
group = parser.getgroup("terminal reporting", "reporting", after="general")
group._addoption(
"-v",
"--verbose",
action="count",
default=0,
dest="verbose",
help="increase verbosity.",
)
group._addoption(
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 112 | getgroup | ref | function | group = parser.getgroup("terminal reporting", "reporting", after="general")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 113 | _addoption | ref | function | group._addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 121 | _addoption | ref | function | group._addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 128 | _addoption | ref | function | group._addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 135 | _addoption | ref | function | group._addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 143 | _addoption | ref | function | group._addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 150 | _addoption | ref | function | group._addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 162 | _addoption | ref | function | group._addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 170 | _addoption | ref | function | group._addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 178 | _addoption | ref | function | group._addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 187 | _addoption | ref | function | group._addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 196 | _addoption | ref | function | group._addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/terminal.py | src/_pytest/terminal.py | 203 | _addoption | ref | function | group._addoption(
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.