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/pytester.py
src/_pytest/pytester.py
1,203
_prepareconfig
ref
function
config = _pytest.config._prepareconfig(new_args, self.plugins) # type: ignore[arg-type]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,207
addfinalizer
ref
function
self._request.addfinalizer(config._ensure_unconfigure)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,210
parseconfigure
def
function
def parseconfigure(self, *args: Union[str, "os.PathLike[str]"]) -> Config: """Return a new pytest configured Config instance. Returns a new :py:class:`pytest.Config` instance like :py:meth:`parseconfig`, but also calls the pytest_configure hook. """ config = self.parseconfig...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,216
parseconfig
ref
function
config = self.parseconfig(*args)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,217
_do_configure
ref
function
config._do_configure()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,220
getitem
def
function
def getitem( self, source: Union[str, "os.PathLike[str]"], funcname: str = "test_func" ) -> Item: """Return the test item for a test function. Writes the source to a python file and runs pytest's collection on the resulting module, returning the test item for the requested ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,234
getitems
ref
function
items = self.getitems(source)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,242
getitems
def
function
def getitems(self, source: Union[str, "os.PathLike[str]"]) -> List[Item]: """Return all test items collected from the module. Writes the source to a Python file and runs pytest's collection on the resulting module, returning all test items contained within. """ modcol = self...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,248
getmodulecol
ref
function
modcol = self.getmodulecol(source)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,249
genitems
ref
function
return self.genitems([modcol])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,251
getmodulecol
def
function
def getmodulecol( self, source: Union[str, "os.PathLike[str]"], configargs=(), *, withinit: bool = _False, ): """Return the module collection node for ``source``. Writes ``source`` to a file using :py:meth:`makepyfile` and then runs the pytest col...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,279
makepyfile
ref
function
path = self.makepyfile(**kw)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,281
makepyfile
ref
function
self.makepyfile(__init__="#")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,282
parseconfigure
ref
function
self.config = config = self.parseconfigure(path, *configargs)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,283
getnode
ref
function
return self.getnode(config, path)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,285
collect_by_name
def
function
def collect_by_name( self, modcol: Collector, name: str ) -> Optional[Union[Item, Collector]]: """Return the collection node for name from the module collection. Searchs a module collection node for a collection node matching the given name. :param modcol: A module coll...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,383
time
ref
function
now = timing.time()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,394
handle_timeout
def
function
def handle_timeout() -> None: __tracebackhide__ = _True timeout_message = ( "{seconds} second timeout expired running:" " {command}".format(seconds=timeout, command=cmdargs) ) popen.kill() ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,412
handle_timeout
ref
function
handle_timeout()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,418
_dump_lines
ref
function
self._dump_lines(out, sys.stdout)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,419
_dump_lines
ref
function
self._dump_lines(err, sys.stderr)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,422
ExitCode
ref
function
ret = ExitCode(ret)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,423
RunResult
ref
function
return RunResult(ret, out, err, timing.time() - now)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,423
time
ref
function
return RunResult(ret, out, err, timing.time() - now)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,425
_dump_lines
def
function
def _dump_lines(self, lines, fp): try: for line in lines: print(line, file=fp) except UnicodeEncodeError: print(f"couldn't print to {fp} because of encoding") def _getpytestargs(self) -> Tuple[str, ...]: return sys.executable, "-mpytest" def ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,432
_getpytestargs
def
function
def _getpytestargs(self) -> Tuple[str, ...]: return sys.executable, "-mpytest" def runpython(self, script: "os.PathLike[str]") -> RunResult: """Run a python script using sys.executable as interpreter.""" return self.run(sys.executable, script) def runpython_c(self, command: str) ->...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,435
runpython
def
function
def runpython(self, script: "os.PathLike[str]") -> RunResult: """Run a python script using sys.executable as interpreter.""" return self.run(sys.executable, script) def runpython_c(self, command: str) -> RunResult: """Run ``python -c "command"``.""" return self.run(sys.executabl...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,439
runpython_c
def
function
def runpython_c(self, command: str) -> RunResult: """Run ``python -c "command"``.""" return self.run(sys.executable, "-c", command) def runpytest_subprocess( self, *args: Union[str, "os.PathLike[str]"], timeout: Optional[float] = None ) -> RunResult: """Run pytest as a subpr...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,443
runpytest_subprocess
def
function
def runpytest_subprocess( self, *args: Union[str, "os.PathLike[str]"], timeout: Optional[float] = None ) -> RunResult: """Run pytest as a subprocess with given arguments. Any plugins added to the :py:attr:`plugins` list will be added using the ``-p`` command line option. Additi...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,461
make_numbered_dir
ref
function
p = make_numbered_dir(root=self.path, prefix="runpytest-", mode=0o700)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,466
_getpytestargs
ref
function
args = self._getpytestargs() + args
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,469
spawn_pytest
def
function
def spawn_pytest( self, string: str, expect_timeout: float = 10.0 ) -> "pexpect.spawn": """Run pytest using pexpect. This makes sure to use the right pytest and sets up the temporary directory locations. The pexpect child is returned. """ basetemp = self...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,481
_getpytestargs
ref
function
invoke = " ".join(map(str, self._getpytestargs()))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,490
importorskip
ref
function
pexpect = importorskip("pexpect", "3.0")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,492
skip
ref
function
skip("pypy-64 bit not supported")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,494
skip
ref
function
skip("pexpect.spawn not available")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,498
addfinalizer
ref
function
self._request.addfinalizer(logfile.close)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,502
LineComp
def
class
__init__ assert_contains_lines
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,507
assert_contains_lines
def
function
def assert_contains_lines(self, lines2: Sequence[str]) -> None: """Assert that ``lines2`` are contained (linearly) in :attr:`stringio`'s value. Lines are matched using :func:`LineMatcher.fnmatch_lines <pytest.LineMatcher.fnmatch_lines>`. """ __tracebackhide__ = _True val = s...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,517
LineMatcher
ref
function
LineMatcher(lines1).fnmatch_lines(lines2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,517
fnmatch_lines
ref
function
LineMatcher(lines1).fnmatch_lines(lines2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,520
LineMatcher
def
class
__init__ __str__ _getlines fnmatch_lines_random re_match_lines_random _match_lines_random get_lines_after _log _log_text fnmatch_lines re_match_lines _match_lines no_fnmatch_line no_re_match_line _no_match_line _fail str
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,542
_getlines
def
function
def _getlines(self, lines2: Union[str, Sequence[str], Source]) -> Sequence[str]: if isinstance(lines2, str): lines2 = Source(lines2) if isinstance(lines2, Source): lines2 = lines2.strip().lines return lines2 def fnmatch_lines_random(self, lines2: Sequence[str]) -...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,544
Source
ref
function
lines2 = Source(lines2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,549
fnmatch_lines_random
def
function
def fnmatch_lines_random(self, lines2: Sequence[str]) -> None: """Check lines exist in the output in any order (using :func:`python:fnmatch.fnmatch`).""" __tracebackhide__ = _True self._match_lines_random(lines2, fnmatch) def re_match_lines_random(self, lines2: Sequence[str]) -> None: ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,552
_match_lines_random
ref
function
self._match_lines_random(lines2, fnmatch)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,554
re_match_lines_random
def
function
def re_match_lines_random(self, lines2: Sequence[str]) -> None: """Check lines exist in the output in any order (using :func:`python:re.match`).""" __tracebackhide__ = _True self._match_lines_random(lines2, lambda name, pat: bool(re.match(pat, name))) def _match_lines_random( se...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,557
_match_lines_random
ref
function
self._match_lines_random(lines2, lambda name, pat: bool(re.match(pat, name)))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,559
_match_lines_random
def
function
def _match_lines_random( self, lines2: Sequence[str], match_func: Callable[[str, str], bool] ) -> None: __tracebackhide__ = _True lines2 = self._getlines(lines2) for line in lines2: for x in self.lines: if line == x or match_func(x, line): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,563
_getlines
ref
function
lines2 = self._getlines(lines2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,566
match_func
ref
function
if line == x or match_func(x, line):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,567
_log
ref
function
self._log("matched: ", repr(line))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,571
_log
ref
function
self._log(msg)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,572
_fail
ref
function
self._fail(msg)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,574
get_lines_after
def
function
def get_lines_after(self, fnline: str) -> Sequence[str]: """Return all lines following the given line in the text. The given line can contain glob wildcards. """ for i, line in enumerate(self.lines): if fnline == line or fnmatch(line, fnline): return self...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,584
_log
def
function
def _log(self, *args) -> None: self._log_output.append(" ".join(str(x) for x in args)) @property def _log_text(self) -> str: return "\n".join(self._log_output) def fnmatch_lines( self, lines2: Sequence[str], *, consecutive: bool = _False ) -> None: """Check lines ex...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,588
_log_text
def
function
def _log_text(self) -> str: return "\n".join(self._log_output) def fnmatch_lines( self, lines2: Sequence[str], *, consecutive: bool = _False ) -> None: """Check lines exist in the output (using :func:`python:fnmatch.fnmatch`). The argument is a list of lines which have to m...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,591
fnmatch_lines
def
function
def fnmatch_lines( self, lines2: Sequence[str], *, consecutive: bool = _False ) -> None: """Check lines exist in the output (using :func:`python:fnmatch.fnmatch`). The argument is a list of lines which have to match and can use glob wildcards. If they do not match a pytest.fail...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,604
_match_lines
ref
function
self._match_lines(lines2, fnmatch, "fnmatch", consecutive=consecutive)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,606
re_match_lines
def
function
def re_match_lines( self, lines2: Sequence[str], *, consecutive: bool = _False ) -> None: """Check lines exist in the output (using :func:`python:re.match`). The argument is a list of lines which have to match using ``re.match``. If they do not match a pytest.fail() is called. ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,620
_match_lines
ref
function
self._match_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,627
_match_lines
def
function
def _match_lines( self, lines2: Sequence[str], match_func: Callable[[str, str], bool], match_nickname: str, *, consecutive: bool = _False, ) -> None: """Underlying implementation of ``fnmatch_lines`` and ``re_match_lines``. :param Sequence[str] li...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,652
_getlines
ref
function
lines2 = self._getlines(lines2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,663
_log
ref
function
self._log("exact match:", repr(line))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,666
match_func
ref
function
elif match_func(nextline, line):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,667
_log
ref
function
self._log("%s:" % match_nickname, repr(line))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,668
_log
ref
function
self._log(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,676
_log
ref
function
self._log(msg)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,677
_log
ref
function
self._log(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,680
_fail
ref
function
self._fail(msg)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,682
_log
ref
function
self._log(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,686
_log
ref
function
self._log("{:>{width}}".format("and:", width=wnick), repr(nextline))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,690
_log
ref
function
self._log(msg)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,691
_fail
ref
function
self._fail(msg)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,694
no_fnmatch_line
def
function
def no_fnmatch_line(self, pat: str) -> None: """Ensure captured lines do not match the given pattern, using ``fnmatch.fnmatch``. :param str pat: The pattern to match lines. """ __tracebackhide__ = _True self._no_match_line(pat, fnmatch, "fnmatch") def no_re_match_line(s...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,700
_no_match_line
ref
function
self._no_match_line(pat, fnmatch, "fnmatch")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,702
no_re_match_line
def
function
def no_re_match_line(self, pat: str) -> None: """Ensure captured lines do not match the given pattern, using ``re.match``. :param str pat: The regular expression to match lines. """ __tracebackhide__ = _True self._no_match_line( pat, lambda name, pat: bool(re.mat...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,708
_no_match_line
ref
function
self._no_match_line(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,712
_no_match_line
def
function
def _no_match_line( self, pat: str, match_func: Callable[[str, str], bool], match_nickname: str ) -> None: """Ensure captured lines does not have a the given pattern, using ``fnmatch.fnmatch``. :param str pat: The pattern to match lines. """ __tracebackhide__ = _True ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,723
match_func
ref
function
if match_func(line, pat):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,725
_log
ref
function
self._log(msg)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,726
_log
ref
function
self._log("{:>{width}}".format("with:", width=wnick), repr(line))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,727
_fail
ref
function
self._fail(msg)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,730
_log
ref
function
self._log("{:>{width}}".format("nomatch:", width=wnick), repr(pat))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,732
_log
ref
function
self._log("{:>{width}}".format("and:", width=wnick), repr(line))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,735
_fail
def
function
def _fail(self, msg: str) -> None: __tracebackhide__ = _True log_text = self._log_text self._log_output = [] fail(log_text) def str(self) -> str: """Return the entire original text.""" return str(self)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester.py
src/_pytest/pytester.py
1,739
fail
ref
function
fail(log_text)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester_assertions.py
src/_pytest/pytester_assertions.py
14
assertoutcome
def
function
def assertoutcome( outcomes: Tuple[ Sequence[TestReport], Sequence[Union[CollectReport, TestReport]], Sequence[Union[CollectReport, TestReport]], ], passed: int = 0, skipped: int = 0, failed: int = 0,
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/pytester_assertions.py
src/_pytest/pytester_assertions.py
36
assert_outcomes
def
function
def assert_outcomes( outcomes: Dict[str, int], passed: int = 0, skipped: int = 0, failed: int = 0, errors: int = 0, xpassed: int = 0, xfailed: int = 0, warnings: int = 0, deselected: int = 0,
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py
src/_pytest/python.py
89
pytest_addoption
def
function
def pytest_addoption(parser: Parser) -> None: group = parser.getgroup("general") group.addoption( "--fixtures", "--funcargs", action="store_true", dest="showfixtures", default=_False, help="show available fixtures, sorted by plugin appearance " "(fixtures ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py
src/_pytest/python.py
90
getgroup
ref
function
group = parser.getgroup("general")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py
src/_pytest/python.py
91
addoption
ref
function
group.addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py
src/_pytest/python.py
100
addoption
ref
function
group.addoption(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py
src/_pytest/python.py
107
addini
ref
function
parser.addini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py
src/_pytest/python.py
114
addini
ref
function
parser.addini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py
src/_pytest/python.py
120
addini
ref
function
parser.addini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py
src/_pytest/python.py
126
addini
ref
function
parser.addini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py
src/_pytest/python.py
135
pytest_cmdline_main
def
function
def pytest_cmdline_main(config: Config) -> Optional[Union[int, ExitCode]]: if config.option.showfixtures: showfixtures(config) return 0 if config.option.show_fixtures_per_test: show_fixtures_per_test(config) return 0 return None
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py
src/_pytest/python.py
137
showfixtures
ref
function
showfixtures(config)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/src/_pytest/python.py
src/_pytest/python.py
140
show_fixtures_per_test
ref
function
show_fixtures_per_test(config)