MCPcopy Create free account

hub / github.com/pytest-dev/pytest / functions

Functions4,602 in github.com/pytest-dev/pytest

↓ 2 callersFunctionevaluate_condition
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
src/_pytest/skipping.py:85
↓ 2 callersFunctionexit
Exit testing process. :param reason: The message to show as the reason for exiting pytest. reason has a default value only becau
src/_pytest/outcomes.py:116
↓ 2 callersFunctionexpr
(s: Scanner)
src/_pytest/mark/expression.py:145
↓ 2 callersFunctionextract_suffixes
Return the parts of the paths following the prefix. :param iter: Iterator over path names. :param prefix: Expected prefix of the path names.
src/_pytest/pathlib.py:163
↓ 2 callersFunctionfin
()
src/_pytest/debugging.py:84
↓ 2 callersFunctionfind_prefixed
Find all elements in root that begin with the prefix, case insensitive.
src/_pytest/pathlib.py:155
↓ 2 callersFunctionfind_suffixes
Combine find_prefixes and extract_suffixes.
src/_pytest/pathlib.py:174
↓ 2 callersMethodfinish
(self, request: SubRequest)
src/_pytest/fixtures.py:1017
↓ 2 callersMethodfor_later
Return an unfilled ExceptionInfo.
src/_pytest/_code/code.py:518
↓ 2 callersFunctionformat_session_duration
Format the given seconds in a human readable manner to show in the final summary.
src/_pytest/terminal.py:1367
↓ 2 callersMethodfrom_item
(cls, item: "Item")
src/_pytest/mark/__init__.py:230
↓ 2 callersFunctionfunc
()
testing/test_compat.py:69
↓ 2 callersFunctionfunc
()
testing/code/test_code.py:58
↓ 2 callersMethodget_closest_marker
(self, name: str)
src/_pytest/nodes.py:381
↓ 2 callersFunctionget_dirs_from_args
(args: Iterable[str])
src/_pytest/config/findpaths.py:137
↓ 2 callersMethodget_exconly
( self, excinfo: ExceptionInfo[BaseException], indent: int = 4, markall: bool
src/_pytest/_code/code.py:759
↓ 2 callersFunctionget_extended_length_path_str
Convert a path to a Windows extended length path.
src/_pytest/pathlib.py:135
↓ 2 callersFunctionget_optionflags
(parent)
src/_pytest/doctest.py:395
↓ 2 callersFunctionget_public_names
Only return names from iterator values without a leading underscore.
src/_pytest/pytester.py:210
↓ 2 callersMethodget_records
Get the logging records for one of the possible test phases. :param str when: Which test phase to obtain the records from. Valid
src/_pytest/logging.py:384
↓ 2 callersFunctionget_scope_node
( node: nodes.Node, scope: Scope )
src/_pytest/fixtures.py:132
↓ 2 callersMethodget_terminal_writer
(self)
src/_pytest/config/__init__.py:1003
↓ 2 callersMethodgetfailures
( self, names: "Literal['pytest_collectreport']", )
src/_pytest/pytester.py:384
↓ 2 callersMethodgetfirstlinesource
(self)
src/_pytest/_code/code.py:241
↓ 2 callersMethodgetfixturedefs
Get a list of fixtures which are applicable to the given node id. :param str argname: Name of the fixture to search for. :param str n
src/_pytest/fixtures.py:1665
↓ 2 callersFunctiongetpluginversioninfo
(config: Config)
src/_pytest/helpconfig.py:234
↓ 2 callersFunctiongetrawcode
Return code object for given function.
src/_pytest/_code/source.py:129
↓ 2 callersFunctiongetreportopt
(config: Config)
src/_pytest/terminal.py:239
↓ 2 callersMethodgetvalue
Deprecated, use getoption() instead.
src/_pytest/config/__init__.py:1505
↓ 2 callersMethodgetvalueorskip
Deprecated, use getoption(skip=True) instead.
src/_pytest/config/__init__.py:1509
↓ 2 callersMethodglobal_and_fixture_disabled
Context manager to temporarily disable global and current fixture capturing.
src/_pytest/capture.py:731
↓ 2 callersFunctionglobf
(x)
doc/en/example/assertion/failure_demo.py:159
↓ 2 callersFunctionh
()
testing/code/test_excinfo.py:96
↓ 2 callersMethodhasopt
(self, char: str)
src/_pytest/terminal.py:384
↓ 2 callersMethodindent
Return a copy of the source object with all lines indented by the given indent-string.
src/_pytest/_code/source.py:83
↓ 2 callersMethodindex
(self, value)
src/_pytest/capture.py:503
↓ 2 callersFunctioninsert_missing_modules
Used by ``import_path`` to create intermediate modules when using mode=importlib. When we want to import a module as "src.tests.test_foo" fo
src/_pytest/pathlib.py:593
↓ 2 callersFunctionis_async_function
Return True if the given function seems to be an async function or an async generator.
src/_pytest/compat.py:80
↓ 2 callersMethodis_rewrite_disabled
(docstring: str)
src/_pytest/assertion/rewrite.py:764
↓ 2 callersMethodis_started
Whether actively capturing -- not suspended or stopped.
src/_pytest/capture.py:591
↓ 2 callersFunctionisattrs
(obj: Any)
src/_pytest/assertion/util.py:126
↓ 2 callersFunctioniscoroutinefunction
Return True if func is a coroutine function (a function defined with async def syntax, and doesn't contain yield), or a function decorated with
src/_pytest/compat.py:68
↓ 2 callersFunctionisdatacls
(obj: Any)
src/_pytest/assertion/util.py:122
↓ 2 callersMethodisinitpath
(self, path: Union[str, "os.PathLike[str]"])
src/_pytest/python.py:688
↓ 2 callersFunctionisnamedtuple
(obj: Any)
src/_pytest/assertion/util.py:118
↓ 2 callersMethodisnosetest
Look for the __test__ attribute, which is applied by the @nose.tools.istest decorator.
src/_pytest/python.py:373
↓ 2 callersMethodload
(self)
testing/test_config.py:942
↓ 2 callersFunctionlocate_config
Search in the list of arguments for a valid ini-file for pytest, and return a tuple of (rootdir, inifile, cfg-dict).
src/_pytest/config/findpaths.py:88
↓ 2 callersFunctionlsof_check
()
testing/test_capture.py:942
↓ 2 callersFunctionmain
Perform an in-process test run. :param args: List of command line arguments. :param plugins: List of plugin objects to be auto-registered dur
src/_pytest/config/__init__.py:133
↓ 2 callersMethodmake_conftest_for_args
(self, pytester: Pytester)
testing/test_config.py:667
↓ 2 callersMethodmake_conftest_for_linelist
(self, pytester: Pytester)
testing/test_config.py:703
↓ 2 callersMethodmake_function
(pytester: Pytester, **kwargs: Any)
testing/python/collect.py:294
↓ 2 callersFunctionmangle_test_address
(address: str)
src/_pytest/junitxml.py:450
↓ 2 callersMethodmarkup
(self, text, **kw)
testing/conftest.py:93
↓ 2 callersFunctionmodule_name_from_path
Return a dotted module name based on the given path, anchored on root. For example: path="projects/src/tests/test_foo.py" and root="/project
src/_pytest/pathlib.py:572
↓ 2 callersMethodnames
(self)
src/_pytest/config/argparsing.py:278
↓ 2 callersMethodnewinstance
(self)
src/_pytest/python.py:790
↓ 2 callersMethodnext_lower
Return the next lower scope.
src/_pytest/scope.py:42
↓ 2 callersMethodnode
Underlying collection node (depends on current request scope).
src/_pytest/fixtures.py:466
↓ 2 callersMethodnotify_exception
( self, excinfo: ExceptionInfo[BaseException], option: Optional[argparse.Namespace] =
src/_pytest/config/__init__.py:1035
↓ 2 callersMethodobj
Underlying Python object.
src/_pytest/python.py:292
↓ 2 callersMethodparse_summary_nouns
Extract the nouns from a pytest terminal summary line. It always returns the plural noun for consistency:: ======= 1 failed, 1 p
src/_pytest/pytester.py:568
↓ 2 callersFunctionpath_matches_patterns
Return whether path matches any of the patterns in the list of globs given.
src/_pytest/python.py:213
↓ 2 callersFunctionpluralize
(count: int, noun: str)
src/_pytest/terminal.py:1340
↓ 2 callersMethodpop_outerr_to_orig
Pop current snapshot out/err capture and flush to orig streams.
src/_pytest/capture.py:550
↓ 2 callersFunctionpost_mortem
(t: types.TracebackType)
src/_pytest/debugging.py:383
↓ 2 callersFunctionprepend_pythonpath
(*dirs)
testing/acceptance_test.py:14
↓ 2 callersMethodpytest_collect_file
(self, file_path: Path)
testing/test_collection.py:279
↓ 2 callersFunctionpytest_configure
(config: Config)
src/_pytest/mark/__init__.py:268
↓ 2 callersMethodpytest_exception_interact
( self, node: Node, call: "CallInfo[Any]", report: BaseReport )
src/_pytest/debugging.py:286
↓ 2 callersMethodpytest_make_collect_report
(self, collector: Collector)
src/_pytest/capture.py:764
↓ 2 callersMethodpytest_runtest_logreport
( self, report: Union[TestReport, CollectReport] )
src/_pytest/main.py:517
↓ 2 callersMethodpytest_runtest_logstart
(self)
src/_pytest/logging.py:685
↓ 2 callersFunctionpytest_runtest_setup
(item: Item)
src/_pytest/skipping.py:235
↓ 2 callersMethodraise_exc
(self, *args)
testing/io/test_saferepr.py:74
↓ 2 callersFunctionraises
( expected_exception: Union[Type[E], Tuple[Type[E], ...]], *, match: Optional[Union[str, Pattern[s
src/_pytest/python_api.py:757
↓ 2 callersFunctionregister_cleanup_lock_removal
Register a cleanup function for removing a lock, by default on atexit.
src/_pytest/pathlib.py:247
↓ 2 callersMethodreject
(self, expected: Sequence[TokenType])
src/_pytest/mark/expression.py:120
↓ 2 callersMethodreport_collect
(self, final: bool = False)
src/_pytest/terminal.py:643
↓ 2 callersMethodrepr_failure
Return a representation of a collection or test failure. .. seealso:: :ref:`non-python tests` :param excinfo: Exception information
src/_pytest/nodes.py:484
↓ 2 callersMethodrestore
(self)
src/_pytest/pytester.py:629
↓ 2 callersMethodresume
(self)
src/_pytest/capture.py:429
↓ 2 callersMethodresume_capturing
(self)
src/_pytest/capture.py:569
↓ 2 callersMethodresume_fixture
(self)
src/_pytest/capture.py:724
↓ 2 callersMethodrewrite
Rewinds the terminal cursor to the beginning and writes the given line. :param erase: If True, will also add spaces until the ful
src/_pytest/terminal.py:425
↓ 2 callersFunctionrewrite_asserts
Rewrite the assert statements in mod.
src/_pytest/assertion/rewrite.py:419
↓ 2 callersFunctionsafe_isclass
Ignore any exception via isinstance on Python 3.
src/_pytest/compat.py:334
↓ 2 callersFunctionsafeformat
Return a pretty printed string for the given object. Failing __repr__ functions of user instances will be represented with a short exception
src/_pytest/_io/saferepr.py:81
↓ 2 callersMethodset_repr_style
(self, mode: "Literal['short', 'long']")
src/_pytest/_code/code.py:209
↓ 2 callersMethodsetup_conftest_and_foo
Setup a tests folder to be used to test if modules in that folder can be imported due to side-effects of --import-mode or not.
testing/test_collection.py:1441
↓ 2 callersFunctionsetup_crashing_test
(pytester: Pytester)
testing/test_faulthandler.py:22
↓ 2 callersFunctionshowversion
(config: Config)
src/_pytest/helpconfig.py:131
↓ 2 callersFunctionsleep
()
testing/plugins_integration/pytest_twisted_integration.py:5
↓ 2 callersMethodsnap
(self)
src/_pytest/capture.py:397
↓ 2 callersMethodspawn
Run a command using pexpect. The pexpect child is returned.
src/_pytest/pytester.py:1490
↓ 2 callersMethodspy_factory
(self)
testing/test_pytester.py:229
↓ 2 callersMethodsuspend
(self)
src/_pytest/capture.py:421
↓ 2 callersMethodsuspend_capturing
(self, in_: bool = False)
src/_pytest/capture.py:559
↓ 2 callersMethodsuspend_fixture
(self)
src/_pytest/capture.py:720
← previousnext →501–600 of 4,602, ranked by callers