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/assertion/util.py | src/_pytest/assertion/util.py | 117 | isnamedtuple | def | function | def isnamedtuple(obj: Any) -> bool:
return isinstance(obj, tuple) and getattr(obj, "_fields", None) is not None
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 121 | isdatacls | def | function | def isdatacls(obj: Any) -> bool:
return getattr(obj, "__dataclass_fields__", None) is not None
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 125 | isattrs | def | function | def isattrs(obj: Any) -> bool:
return getattr(obj, "__attrs_attrs__", None) is not None
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 129 | isiterable | def | function | def isiterable(obj: Any) -> bool:
try:
iter(obj)
return not istext(obj)
except TypeError:
return _False
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 132 | istext | ref | function | return not istext(obj)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 137 | assertrepr_compare | def | function | def assertrepr_compare(config, op: str, left: Any, right: Any) -> Optional[List[str]]:
"""Return specialised explanations for some operators/operands."""
verbose = config.getoption("verbose")
if verbose > 1:
left_repr = safeformat(left)
right_repr = safeformat(right)
else:
# XXX:... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 139 | getoption | ref | function | verbose = config.getoption("verbose")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 141 | safeformat | ref | function | left_repr = safeformat(left)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 142 | safeformat | ref | function | right_repr = safeformat(right)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 157 | _compare_eq_any | ref | function | explanation = _compare_eq_any(left, right, verbose)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 159 | istext | ref | function | if istext(left) and istext(right):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 159 | istext | ref | function | if istext(left) and istext(right):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 160 | _notin_text | ref | function | explanation = _notin_text(left, right, verbose)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 166 | from_current | ref | function | _pytest._code.ExceptionInfo.from_current()._getreprcrash()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 166 | _getreprcrash | ref | function | _pytest._code.ExceptionInfo.from_current()._getreprcrash()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 177 | _compare_eq_any | def | function | def _compare_eq_any(left: Any, right: Any, verbose: int = 0) -> List[str]:
explanation = []
if istext(left) and istext(right):
explanation = _diff_text(left, right, verbose)
else:
from _pytest.python_api import ApproxBase
if isinstance(left, ApproxBase) or isinstance(right, ApproxBa... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 179 | istext | ref | function | if istext(left) and istext(right):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 179 | istext | ref | function | if istext(left) and istext(right):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 180 | _diff_text | ref | function | explanation = _diff_text(left, right, verbose)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 189 | _repr_compare | ref | function | explanation = approx_side._repr_compare(other_side)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 191 | isdatacls | ref | function | isdatacls(left) or isattrs(left) or isnamedtuple(left)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 191 | isattrs | ref | function | isdatacls(left) or isattrs(left) or isnamedtuple(left)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 191 | isnamedtuple | ref | function | isdatacls(left) or isattrs(left) or isnamedtuple(left)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 197 | _compare_eq_cls | ref | function | explanation = _compare_eq_cls(left, right, verbose)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 198 | issequence | ref | function | elif issequence(left) and issequence(right):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 198 | issequence | ref | function | elif issequence(left) and issequence(right):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 199 | _compare_eq_sequence | ref | function | explanation = _compare_eq_sequence(left, right, verbose)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 200 | isset | ref | function | elif isset(left) and isset(right):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 200 | isset | ref | function | elif isset(left) and isset(right):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 201 | _compare_eq_set | ref | function | explanation = _compare_eq_set(left, right, verbose)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 202 | isdict | ref | function | elif isdict(left) and isdict(right):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 202 | isdict | ref | function | elif isdict(left) and isdict(right):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 203 | _compare_eq_dict | ref | function | explanation = _compare_eq_dict(left, right, verbose)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 205 | _compare_eq_verbose | ref | function | explanation = _compare_eq_verbose(left, right)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 207 | isiterable | ref | function | if isiterable(left) and isiterable(right):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 207 | isiterable | ref | function | if isiterable(left) and isiterable(right):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 208 | _compare_eq_iterable | ref | function | expl = _compare_eq_iterable(left, right, verbose)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 214 | _diff_text | def | function | def _diff_text(left: str, right: str, verbose: int = 0) -> List[str]:
"""Return the explanation for the diff between text.
Unless --verbose is used this will skip leading and trailing
characters which are identical to keep the diff minimal.
"""
from difflib import ndiff
explanation: List[str] ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 262 | _compare_eq_verbose | def | function | def _compare_eq_verbose(left: Any, right: Any) -> List[str]:
keepends = _True
left_lines = repr(left).splitlines(keepends)
right_lines = repr(right).splitlines(keepends)
explanation: List[str] = []
explanation += ["+" + line for line in left_lines]
explanation += ["-" + line for line in right_l... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 274 | _surrounding_parens_on_own_lines | def | function | def _surrounding_parens_on_own_lines(lines: List[str]) -> None:
"""Move opening/closing parenthesis/bracket to own lines."""
opening = lines[0][:1]
if opening in ["(", "[", "{"]:
lines[0] = " " + lines[0][1:]
lines[:] = [opening] + lines
closing = lines[-1][-1:]
if closing in [")", "... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 286 | _compare_eq_iterable | def | function | def _compare_eq_iterable(
left: Iterable[Any], right: Iterable[Any], verbose: int = 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 289 | running_on_ci | ref | function | if not verbose and not running_on_ci():
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 301 | _pformat_dispatch | ref | function | left_formatting = _pformat_dispatch(left).splitlines()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 302 | _pformat_dispatch | ref | function | right_formatting = _pformat_dispatch(right).splitlines()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 305 | _surrounding_parens_on_own_lines | ref | function | _surrounding_parens_on_own_lines(left_formatting)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 306 | _surrounding_parens_on_own_lines | ref | function | _surrounding_parens_on_own_lines(right_formatting)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 317 | _compare_eq_sequence | def | function | def _compare_eq_sequence(
left: Sequence[Any], right: Sequence[Any], verbose: int = 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 370 | _compare_eq_set | def | function | def _compare_eq_set(
left: AbstractSet[Any], right: AbstractSet[Any], verbose: int = 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 387 | _compare_eq_dict | def | function | def _compare_eq_dict(
left: Mapping[Any, Any], right: Mapping[Any, Any], verbose: int = 0
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 428 | _compare_eq_cls | def | function | def _compare_eq_cls(left: Any, right: Any, verbose: int) -> List[str]:
if isdatacls(left):
all_fields = left.__dataclass_fields__
fields_to_check = [field for field, info in all_fields.items() if info.compare]
elif isattrs(left):
all_fields = left.__attrs_attrs__
fields_to_check ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 429 | isdatacls | ref | function | if isdatacls(left):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 432 | isattrs | ref | function | elif isattrs(left):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 435 | isnamedtuple | ref | function | elif isnamedtuple(left):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 470 | _compare_eq_any | ref | function | for line in _compare_eq_any(field_left, field_right, verbose)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 475 | _notin_text | def | function | def _notin_text(term: str, text: str, verbose: int = 0) -> List[str]:
index = text.find(term)
head = text[:index]
tail = text[index + len(term) :]
correct_text = head + tail
diff = _diff_text(text, correct_text, verbose)
newdiff = ["%s is contained here:" % saferepr(term, maxsize=42)]
for li... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 480 | _diff_text | ref | function | diff = _diff_text(text, correct_text, verbose)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/assertion/util.py | src/_pytest/assertion/util.py | 494 | running_on_ci | def | function | def running_on_ci() -> bool:
"""Check if we're currently running on a CI system."""
env_vars = ["CI", "BUILD_NUMBER"]
return any(var in os.environ for var in env_vars)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 56 | Cache | def | class | __init__ for_config clear_cache cache_dir_from_config warn mkdir _getvaluepath get set _ensure_supporting_files |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 69 | check_ispytest | ref | function | check_ispytest(_ispytest)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 74 | for_config | def | function | null |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 79 | check_ispytest | ref | function | check_ispytest(_ispytest)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 80 | cache_dir_from_config | ref | function | cachedir = cls.cache_dir_from_config(config, _ispytest=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 81 | getoption | ref | function | if config.getoption("cacheclear") and cachedir.is_dir():
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 82 | clear_cache | ref | function | cls.clear_cache(cachedir, _ispytest=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 83 | cls | ref | function | return cls(cachedir, config, _ispytest=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 86 | clear_cache | def | function | null |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 91 | check_ispytest | ref | function | check_ispytest(_ispytest)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 95 | rm_rf | ref | function | rm_rf(d)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 98 | cache_dir_from_config | def | function | null |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 103 | check_ispytest | ref | function | check_ispytest(_ispytest)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 104 | resolve_from_str | ref | function | return resolve_from_str(config.getini("cache_dir"), config.rootpath)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 104 | getini | ref | function | return resolve_from_str(config.getini("cache_dir"), config.rootpath)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 111 | check_ispytest | ref | function | check_ispytest(_ispytest)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 116 | PytestCacheWarning | ref | function | PytestCacheWarning(fmt.format(**args) if args else fmt),
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 142 | _getvaluepath | def | function | def _getvaluepath(self, key: str) -> Path:
return self._cachedir.joinpath(self._CACHE_PREFIX_VALUES, Path(key))
def get(self, key: str, default):
"""Return the cached value for the given key.
If no value was yet cached or the value cannot be read, the specified
default is retur... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 157 | _getvaluepath | ref | function | path = self._getvaluepath(key)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 174 | _getvaluepath | ref | function | path = self._getvaluepath(key)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 185 | _ensure_supporting_files | ref | function | self._ensure_supporting_files()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 195 | _ensure_supporting_files | def | function | def _ensure_supporting_files(self) -> None:
"""Create supporting files in the cache dir that are not really part of the cache."""
readme_path = self._cachedir / "README.md"
readme_path.write_text(README_CONTENT)
gitignore_path = self._cachedir.joinpath(".gitignore")
msg = "#... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 208 | LFPluginCollWrapper | def | class | __init__ pytest_make_collect_report |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 213 | hookimpl | ref | function | @hookimpl(hookwrapper=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 214 | pytest_make_collect_report | def | function | def pytest_make_collect_report(self, collector: nodes.Collector):
if isinstance(collector, Session):
out = yield
res: CollectReport = out.get_result()
# Sort any lf-paths to the beginning.
lf_paths = self.lfplugin._last_failed_paths
res.result = ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 217 | get_result | ref | function | res: CollectReport = out.get_result()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 233 | get_result | ref | function | res = out.get_result()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 241 | register | ref | function | self.lfplugin.config.pluginmanager.register(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 242 | LFPluginCollSkipfiles | ref | function | LFPluginCollSkipfiles(self.lfplugin), "lfplugin-collskip"
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 252 | isinitpath | ref | function | or session.isinitpath(x.path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 260 | LFPluginCollSkipfiles | def | class | __init__ pytest_make_collect_report |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 265 | pytest_make_collect_report | def | function | def pytest_make_collect_report(
self, collector: nodes.Collector
) -> Optional[CollectReport]:
# Packages are Modules, but _last_failed_paths only contains
# test-bearing paths and doesn't try to include the paths of their
# packages, so don't filter them.
if isinstance(c... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 275 | CollectReport | ref | function | return CollectReport(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 281 | LFPlugin | def | class | __init__ get_last_failed_paths pytest_report_collectionfinish pytest_runtest_logreport pytest_collectreport pytest_collection_modifyitems pytest_sessionfinish |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 287 | getoption | ref | function | self.active = any(config.getoption(key) for key in active_keys)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 294 | getoption | ref | function | if config.getoption("lf"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 295 | get_last_failed_paths | ref | function | self._last_failed_paths = self.get_last_failed_paths()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 296 | register | ref | function | config.pluginmanager.register(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 297 | LFPluginCollWrapper | ref | function | LFPluginCollWrapper(self), "lfplugin-collwrapper"
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 300 | get_last_failed_paths | def | function | def get_last_failed_paths(self) -> Set[Path]:
"""Return a set with all Paths()s of the previously failed nodeids."""
rootpath = self.config.rootpath
result = {rootpath / nodeid.split("::")[0] for nodeid in self.lastfailed}
return {x for x in result if x.exists()}
def pytest_repo... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 306 | pytest_report_collectionfinish | def | function | def pytest_report_collectionfinish(self) -> Optional[str]:
if self.active and self.config.getoption("verbose") >= 0:
return "run-last-failure: %s" % self._report_status
return None
def pytest_runtest_logreport(self, report: TestReport) -> None:
if (report.when == "call" and ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 307 | getoption | ref | function | if self.active and self.config.getoption("verbose") >= 0:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/cacheprovider.py | src/_pytest/cacheprovider.py | 311 | pytest_runtest_logreport | def | function | def pytest_runtest_logreport(self, report: TestReport) -> None:
if (report.when == "call" and report.passed) or report.skipped:
self.lastfailed.pop(report.nodeid, None)
elif report.failed:
self.lastfailed[report.nodeid] = _True
def pytest_collectreport(self, report: Coll... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.