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/python.py | src/_pytest/python.py | 517 | _get_first_non_fixture_func | ref | function | setup_module = _get_first_non_fixture_func(self.obj, ("setup",))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 518 | _get_first_non_fixture_func | ref | function | teardown_module = _get_first_non_fixture_func(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 522 | _get_first_non_fixture_func | ref | function | teardown_module = _get_first_non_fixture_func(self.obj, ("teardown",))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 527 | fixture | ref | function | @fixtures.fixture(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 533 | xunit_setup_module_fixture | def | function | def xunit_setup_module_fixture(request) -> Generator[None, None, None]:
if setup_module is not None:
_call_with_optional_argument(setup_module, request.module)
yield
if teardown_module is not None:
_call_with_optional_argument(teardown_module, ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 535 | _call_with_optional_argument | ref | function | _call_with_optional_argument(setup_module, request.module)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 538 | _call_with_optional_argument | ref | function | _call_with_optional_argument(teardown_module, request.module)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 542 | _inject_setup_function_fixture | def | function | def _inject_setup_function_fixture(self) -> None:
"""Inject a hidden autouse, function scoped fixture into the collected module object
that invokes setup_function/teardown_function if either or both are available.
Using a fixture to invoke this methods ensures we play nicely and unsurprisin... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 549 | _get_first_non_fixture_func | ref | function | setup_function = _get_first_non_fixture_func(self.obj, ("setup_function",))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 550 | _get_first_non_fixture_func | ref | function | teardown_function = _get_first_non_fixture_func(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 556 | fixture | ref | function | @fixtures.fixture(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 562 | xunit_setup_function_fixture | def | function | def xunit_setup_function_fixture(request) -> Generator[None, None, None]:
if request.instance is not None:
# in this case we are bound to an instance, so we need to let
# setup_method handle this
yield
return
if setup_functi... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 569 | _call_with_optional_argument | ref | function | _call_with_optional_argument(setup_function, request.function)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 572 | _call_with_optional_argument | ref | function | _call_with_optional_argument(teardown_function, request.function)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 576 | _importtestmodule | def | function | def _importtestmodule(self):
# We assume we are only called once per module.
importmode = self.config.getoption("--import-mode")
try:
mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
except SyntaxError as e:
raise self.CollectError(
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 578 | getoption | ref | function | importmode = self.config.getoption("--import-mode")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 580 | import_path | ref | function | mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 582 | CollectError | ref | function | raise self.CollectError(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 583 | from_current | ref | function | ExceptionInfo.from_current().getrepr(style="short")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 583 | getrepr | ref | function | ExceptionInfo.from_current().getrepr(style="short")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 586 | CollectError | ref | function | raise self.CollectError(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 596 | from_current | ref | function | exc_info = ExceptionInfo.from_current()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 597 | getoption | ref | function | if self.config.getoption("verbose") < 2:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 600 | getrepr | ref | function | exc_info.getrepr(style="short")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 602 | exconly | ref | function | else exc_info.exconly()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 605 | CollectError | ref | function | raise self.CollectError(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 614 | CollectError | ref | function | raise self.CollectError(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 620 | consider_module | ref | function | self.config.pluginmanager.consider_module(mod)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 624 | Package | def | class | __init__ setup gethookproxy isinitpath _recurse _collectfile collect |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 649 | setup | def | function | def setup(self) -> None:
# Not using fixtures to call setup_module here because autouse fixtures
# from packages are not called automatically (#4085).
setup_module = _get_first_non_fixture_func(
self.obj, ("setUpModule", "setup_module")
)
if setup_module is not No... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 652 | _get_first_non_fixture_func | ref | function | setup_module = _get_first_non_fixture_func(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 656 | _call_with_optional_argument | ref | function | _call_with_optional_argument(setup_module, self.obj)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 658 | _get_first_non_fixture_func | ref | function | teardown_module = _get_first_non_fixture_func(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 663 | addfinalizer | ref | function | self.addfinalizer(func)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 665 | gethookproxy | def | function | def gethookproxy(self, fspath: "os.PathLike[str]"):
warnings.warn(FSCOLLECTOR_GETHOOKPROXY_ISINITPATH, stacklevel=2)
return self.session.gethookproxy(fspath)
def isinitpath(self, path: Union[str, "os.PathLike[str]"]) -> bool:
warnings.warn(FSCOLLECTOR_GETHOOKPROXY_ISINITPATH, stacklevel... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 667 | gethookproxy | ref | function | return self.session.gethookproxy(fspath)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 669 | isinitpath | def | function | def isinitpath(self, path: Union[str, "os.PathLike[str]"]) -> bool:
warnings.warn(FSCOLLECTOR_GETHOOKPROXY_ISINITPATH, stacklevel=2)
return self.session.isinitpath(path)
def _recurse(self, direntry: "os.DirEntry[str]") -> bool:
if direntry.name == "__pycache__":
return _Fals... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 671 | isinitpath | ref | function | return self.session.isinitpath(path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 673 | _recurse | def | function | def _recurse(self, direntry: "os.DirEntry[str]") -> bool:
if direntry.name == "__pycache__":
return _False
fspath = Path(direntry.path)
ihook = self.session.gethookproxy(fspath.parent)
if ihook.pytest_ignore_collect(fspath=fspath, config=self.config):
return _... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 677 | gethookproxy | ref | function | ihook = self.session.gethookproxy(fspath.parent)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 678 | pytest_ignore_collect | ref | function | if ihook.pytest_ignore_collect(fspath=fspath, config=self.config):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 680 | getini | ref | function | norecursepatterns = self.config.getini("norecursedirs")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 681 | fnmatch_ex | ref | function | if any(fnmatch_ex(pat, fspath) for pat in norecursepatterns):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 685 | _collectfile | def | function | def _collectfile(
self, fspath: Path, handle_dupes: bool = _True
) -> Sequence[nodes.Collector]:
assert (
fspath.is_file()
), "{!r} is not a file (isdir={!r}, exists={!r}, islink={!r})".format(
fspath, fspath.is_dir(), fspath.exists(), fspath.is_symlink()
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 693 | gethookproxy | ref | function | ihook = self.session.gethookproxy(fspath)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 694 | isinitpath | ref | function | if not self.session.isinitpath(fspath):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 695 | pytest_ignore_collect | ref | function | if ihook.pytest_ignore_collect(fspath=fspath, config=self.config):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 699 | getoption | ref | function | keepduplicates = self.config.getoption("keepduplicates")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 707 | pytest_collect_file | ref | function | return ihook.pytest_collect_file(fspath=fspath, parent=self) # type: ignore[no-any-return]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 709 | collect | def | function | def collect(self) -> Iterable[Union[nodes.Item, nodes.Collector]]:
if not getattr(self.obj, "__test__", _True):
return []
# Avoid random getattrs and peek in the __dict__ instead.
dicts = [getattr(self.obj, "__dict__", {})]
if isinstance(self.obj, type):
for ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 712 | path_matches_patterns | ref | function | if init_module.is_file() and path_matches_patterns(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 713 | getini | ref | function | init_module, self.config.getini("python_files")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 715 | from_parent | ref | function | yield Module.from_parent(self, path=init_module)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 717 | visit | ref | function | for direntry in visit(str(this_path), recurse=self._recurse):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 725 | parts | ref | function | parts_ = parts(direntry.path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 733 | _collectfile | ref | function | yield from self._collectfile(path)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 741 | _call_with_optional_argument | def | function | def _call_with_optional_argument(func, arg) -> None:
"""Call the given function with the given argument if func accepts one argument, otherwise
calls func without arguments."""
arg_count = func.__code__.co_argcount
if inspect.ismethod(func):
arg_count -= 1
if arg_count:
func(arg)
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 748 | func | ref | function | func(arg)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 750 | func | ref | function | func()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 753 | _get_first_non_fixture_func | def | function | def _get_first_non_fixture_func(obj: object, names: Iterable[str]) -> Optional[object]:
"""Return the attribute from the given object to be used as a setup/teardown
xunit-style function, but only if not marked as a fixture to avoid calling it twice."""
for name in names:
meth: Optional[object] = get... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 758 | getfixturemarker | ref | function | if meth is not None and fixtures.getfixturemarker(meth) is None:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 763 | Class | def | class | from_parent newinstance collect _inject_setup_class_fixture _inject_setup_method_fixture |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 767 | from_parent | def | function | def from_parent(cls, parent, *, name, obj=None, **kw):
"""The public constructor."""
return super().from_parent(name=name, parent=parent, **kw)
def newinstance(self):
return self.obj()
def collect(self) -> Iterable[Union[nodes.Item, nodes.Collector]]:
if not safe_getattr(se... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 769 | from_parent | ref | function | return super().from_parent(name=name, parent=parent, **kw)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 771 | newinstance | def | function | def newinstance(self):
return self.obj()
def collect(self) -> Iterable[Union[nodes.Item, nodes.Collector]]:
if not safe_getattr(self.obj, "__test__", _True):
return []
if hasinit(self.obj):
assert self.parent is not None
self.warn(
Pyt... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 772 | obj | ref | function | return self.obj()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 774 | collect | def | function | def collect(self) -> Iterable[Union[nodes.Item, nodes.Collector]]:
if not getattr(self.obj, "__test__", _True):
return []
# Avoid random getattrs and peek in the __dict__ instead.
dicts = [getattr(self.obj, "__dict__", {})]
if isinstance(self.obj, type):
for ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 775 | safe_getattr | ref | function | if not safe_getattr(self.obj, "__test__", True):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 777 | hasinit | ref | function | if hasinit(self.obj):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 780 | PytestCollectionWarning | ref | function | PytestCollectionWarning(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 787 | hasnew | ref | function | elif hasnew(self.obj):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 790 | PytestCollectionWarning | ref | function | PytestCollectionWarning(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 798 | _inject_setup_class_fixture | ref | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 799 | _inject_setup_method_fixture | ref | function | self._inject_setup_method_fixture()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 801 | parsefactories | ref | function | self.session._fixturemanager.parsefactories(self.newinstance(), self.nodeid)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 801 | newinstance | ref | function | self.session._fixturemanager.parsefactories(self.newinstance(), self.nodeid)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 803 | collect | ref | function | return super().collect()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 805 | _inject_setup_class_fixture | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 812 | _get_first_non_fixture_func | ref | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 817 | fixture | ref | function | @fixtures.fixture(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 823 | xunit_setup_class_fixture | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 825 | getimfunc | ref | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 826 | _call_with_optional_argument | ref | function | _call_with_optional_argument(func, self.obj)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 829 | getimfunc | ref | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 830 | _call_with_optional_argument | ref | function | _call_with_optional_argument(func, self.obj)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 834 | _inject_setup_method_fixture | def | function | def _inject_setup_method_fixture(self) -> None:
"""Inject a hidden autouse, function scoped fixture into the collected class object
that invokes setup_method/teardown_method if either or both are available.
Using a fixture to invoke this methods ensures we play nicely and unsurprisingly wit... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 841 | has_plugin | ref | function | has_nose = self.config.pluginmanager.has_plugin("nose")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 843 | _get_first_non_fixture_func | ref | function | setup_method = _get_first_non_fixture_func(self.obj, (setup_name,))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 846 | _get_first_non_fixture_func | ref | function | setup_method = _get_first_non_fixture_func(self.obj, (setup_name,))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 855 | fixture | ref | function | @fixtures.fixture(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 861 | xunit_setup_method_fixture | def | function | def xunit_setup_method_fixture(self, request) -> Generator[None, None, None]:
method = request.function
if setup_method is not None:
func = getattr(self, setup_name)
_call_with_optional_argument(func, method)
yield
if teardown_metho... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 865 | _call_with_optional_argument | ref | function | _call_with_optional_argument(func, method)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 869 | _call_with_optional_argument | ref | function | _call_with_optional_argument(func, method)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 874 | InstanceDummy | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 892 | hasinit | def | function | def hasinit(obj: object) -> bool:
init: object = getattr(obj, "__init__", None)
if init:
return init != object.__init__
return _False
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 899 | hasnew | def | function | def hasnew(obj: object) -> bool:
new: object = getattr(obj, "__new__", None)
if new:
return new != object.__new__
return _False
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 908 | CallSpec2 | def | class | setmulti getparam id |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 931 | setmulti | def | function | def setmulti(
self,
*,
valtypes: Mapping[str, "Literal['params', 'funcargs']"],
argnames: Iterable[str],
valset: Iterable[object],
id: str,
marks: Iterable[Union[Mark, MarkDecorator]],
scope: Scope,
param_index: int,
) -> "CallSpec2":
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 955 | assert_never | ref | function | assert_never(valtype_for_arg)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py | src/_pytest/python.py | 958 | CallSpec2 | ref | function | return CallSpec2(
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.