MCPcopy Create free account

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

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

↓ 1 callersFunctionnullcontext
()
src/_pytest/compat.py:192
↓ 1 callersFunctionnum_mock_patch_args
Return number of arguments used up by mock arguments (if any).
src/_pytest/compat.py:100
↓ 1 callersFunctionon_rm_rf_error
Handle known read-only errors during rmtree. The returned value is used only by our own tests.
src/_pytest/pathlib.py:66
↓ 1 callersFunctionotherfunc
(a, b)
doc/en/example/assertion/failure_demo.py:5
↓ 1 callersFunctionotherfunc_multi
(a, b)
doc/en/example/assertion/failure_demo.py:13
↓ 1 callersFunctionparse_changelog
(tag_name)
scripts/publish-gh-release-notes.py:38
↓ 1 callersMethodparse_hookimpl_opts
(self, plugin: _PluggyPlugin, name: str)
src/_pytest/config/__init__.py:401
↓ 1 callersFunctionparts
(s: str)
src/_pytest/pathlib.py:424
↓ 1 callersMethodpatch
(self)
testing/conftest.py:207
↓ 1 callersMethodpath
(n: int)
testing/test_pytester.py:383
↓ 1 callersFunctionplugin_definitions
Return RST for the plugin list that fits better on a vertical page.
scripts/update-plugin-list.py:103
↓ 1 callersMethodpopcall
(self, name: str)
src/_pytest/pytester.py:301
↓ 1 callersFunctionpre_release
Generates new docs, release announcements and creates a local tag.
scripts/release.py:87
↓ 1 callersFunctionprepare_release_pr
( base_branch: str, is_major: bool, token: str, prerelease: str )
scripts/prepare-release-pr.py:49
↓ 1 callersMethodprint_teardown_sections
(self, rep: TestReport)
src/_pytest/terminal.py:972
↓ 1 callersMethodprocessoption
(self, option: "Argument")
src/_pytest/config/argparsing.py:59
↓ 1 callersMethodprune_dependency_tree
Recompute names_closure from initialnames and name2fixturedefs. Can only reduce names_closure, which means that the new closure will
src/_pytest/fixtures.py:405
↓ 1 callersFunctionpublish_github_release
(slug, token, tag_name, body)
scripts/publish-gh-release-notes.py:31
↓ 1 callersMethodpytest_cmdline_parse
( self, pluginmanager: PytestPluginManager, args: List[str] )
src/_pytest/config/__init__.py:1009
↓ 1 callersMethodpytest_collection
(self)
src/_pytest/logging.py:663
↓ 1 callersMethodpytest_collection_finish
(self, session: "Session")
src/_pytest/terminal.py:736
↓ 1 callersMethodpytest_collection_modifyitems
( self, config: Config, items: List[nodes.Item] )
src/_pytest/cacheprovider.py:328
↓ 1 callersMethodpytest_collectstart
(self)
src/_pytest/main.py:510
↓ 1 callersMethodpytest_configure
(self)
testing/test_pluginmanager.py:86
↓ 1 callersMethodpytest_internalerror
(self, excrepr: ExceptionRepr)
src/_pytest/junitxml.py:635
↓ 1 callersMethodpytest_internalerror
(self, excrepr: ExceptionRepr)
src/_pytest/terminal.py:465
↓ 1 callersMethodpytest_keyboard_interrupt
(self)
src/_pytest/capture.py:794
↓ 1 callersMethodpytest_load_initial_conftests
(self, early_config: "Config")
src/_pytest/config/__init__.py:1079
↓ 1 callersMethodpytest_make_parametrize_id
(self, **kw)
testing/python/metafunc.py:261
↓ 1 callersMethodpytest_pyfunc_call
(self, pyfuncitem)
src/_pytest/debugging.py:305
↓ 1 callersMethodpytest_pyfunc_call
(self)
testing/python/collect.py:547
↓ 1 callersMethodpytest_report_collectionfinish
(self)
src/_pytest/cacheprovider.py:307
↓ 1 callersMethodpytest_report_header
(self, config: Config)
src/_pytest/terminal.py:719
↓ 1 callersMethodpytest_runtest_call
(self, item: nodes.Item)
src/_pytest/logging.py:721
↓ 1 callersMethodpytest_runtest_logfinish
(self)
src/_pytest/logging.py:735
↓ 1 callersMethodpytest_runtest_protocol
(self, item: Item)
src/_pytest/pytester.py:165
↓ 1 callersMethodpytest_runtest_setup
(self, item: nodes.Item)
src/_pytest/logging.py:713
↓ 1 callersMethodpytest_runtestloop
(self, session: Session)
src/_pytest/logging.py:671
↓ 1 callersMethodpytest_terminal_summary
(self)
src/_pytest/terminal.py:815
↓ 1 callersMethodpytest_unconfigure
(self)
src/_pytest/logging.py:747
↓ 1 callersMethodpytest_xyz
X
testing/test_pytester.py:171
↓ 1 callersMethodpytest_xyz_noarg
X
testing/test_pytester.py:174
↓ 1 callersMethodraiseerror
Raise a FixtureLookupError with the given message.
src/_pytest/fixtures.py:569
↓ 1 callersMethodre_match_lines_random
Check lines exist in the output in any order (using :func:`python:re.match`).
src/_pytest/pytester.py:1559
↓ 1 callersMethodrecord_testreport
(self, testreport: TestReport)
src/_pytest/junitxml.py:119
↓ 1 callersFunctionregen
Call regendoc tool to update examples and pytest output in the docs.
scripts/release.py:64
↓ 1 callersFunctionreorder_items
(items: Sequence[nodes.Item])
src/_pytest/fixtures.py:279
↓ 1 callersFunctionreorder_items_atscope
( items: Dict[nodes.Item, None], argkeys_cache: Dict[Scope, Dict[nodes.Item, Dict[_Key, None]]], i
src/_pytest/fixtures.py:309
↓ 1 callersFunctionreport
(issues)
extra/get_issues.py:55
↓ 1 callersMethodrepr
(self, x: object)
src/_pytest/_io/saferepr.py:58
↓ 1 callersMethodreset
Reset the handler; should be called before the start of each test.
src/_pytest/logging.py:785
↓ 1 callersFunctionresolve
(name: str)
src/_pytest/monkeypatch.py:53
↓ 1 callersFunctionresolve_fixture_function
Get the actual callable that can be called to obtain the fixture value, dealing with unittest-specific instances and bound methods.
src/_pytest/fixtures.py:1080
↓ 1 callersFunctionresolve_from_str
(input: str, rootpath: Path)
src/_pytest/pathlib.py:379
↓ 1 callersMethodrun
Find all assert statements in *mod* and rewrite them.
src/_pytest/assertion/rewrite.py:679
↓ 1 callersMethodruncall
(*args, **kwargs)
testing/test_unittest.py:1187
↓ 1 callersFunctionrunfiletest
(opts: Sequence[str])
testing/test_config.py:906
↓ 1 callersFunctionrunning_on_ci
Check if we're currently running on a CI system.
src/_pytest/assertion/util.py:495
↓ 1 callersMethodrunpython_c
Run ``python -c "command"``.
src/_pytest/pytester.py:1444
↓ 1 callersMethodruntest
Run the test case for this item. Must be implemented by subclasses. .. seealso:: :ref:`non-python tests`
src/_pytest/nodes.py:700
↓ 1 callersFunctionsafe_exists
(path: Path)
src/_pytest/config/findpaths.py:149
↓ 1 callersFunctionsearch_pypath
Search sys.path for the given a dotted module name, and return its file system path.
src/_pytest/main.py:832
↓ 1 callersMethodsection
(self, title: str, sep: str = "=", **kw: bool)
src/_pytest/terminal.py:453
↓ 1 callersFunctionserialize_exception_longrepr
(rep: BaseReport)
src/_pytest/reports.py:479
↓ 1 callersFunctionserialize_repr_crash
( reprcrash: Optional[ReprFileLocation], )
src/_pytest/reports.py:471
↓ 1 callersFunctionserialize_repr_entry
( entry: Union[ReprEntry, ReprEntryNative] )
src/_pytest/reports.py:454
↓ 1 callersFunctionserialize_repr_traceback
(reprtraceback: ReprTraceback)
src/_pytest/reports.py:464
↓ 1 callersMethodset_when
Prepare for the given test phase (setup/call/teardown).
src/_pytest/logging.py:789
↓ 1 callersMethodsetmulti
( self, *, valtypes: Mapping[str, "Literal['params', 'funcargs']"], argnames:
src/_pytest/python.py:950
↓ 1 callersMethodsetup
Setup objects along the collector chain to the item.
src/_pytest/runner.py:482
↓ 1 callersMethodsetuptestfs
(self, path: Path)
testing/test_pathlib.py:94
↓ 1 callersMethodshort_test_summary
(self)
src/_pytest/terminal.py:1067
↓ 1 callersFunctionshould_do_markup
(file: TextIO)
src/_pytest/_io/terminalwriter.py:26
↓ 1 callersFunctionshow_fixtures_per_test
(config)
src/_pytest/python.py:1472
↓ 1 callersFunctionshow_test_item
Show test function, parameters and the fixtures of the test item.
src/_pytest/runner.py:142
↓ 1 callersFunctionshowfixtures
(config: Config)
src/_pytest/python.py:1528
↓ 1 callersFunctionshowhelp
(config: Config)
src/_pytest/helpconfig.py:158
↓ 1 callersFunctionsomefunc
(x, y)
doc/en/example/assertion/failure_demo.py:9
↓ 1 callersFunctionstore_mark
Store a Mark on an object. This is used to implement the Mark declarations/decorators correctly.
src/_pytest/mark/structures.py:388
↓ 1 callersMethodsummary_errors
(self)
src/_pytest/terminal.py:1002
↓ 1 callersMethodsummary_failures
(self)
src/_pytest/terminal.py:985
↓ 1 callersMethodsummary_passes
(self)
src/_pytest/terminal.py:946
↓ 1 callersMethodsummary_stats
(self)
src/_pytest/terminal.py:1030
↓ 1 callersMethodsummary_warnings
(self)
src/_pytest/terminal.py:892
↓ 1 callersFunctiontemporary_verbosity
(config, verbosity=0)
testing/python/approx.py:48
↓ 1 callersMethodtest_deprecated_call
(self)
testing/test_recwarn.py:106
↓ 1 callersMethodtest_deprecated_call_raises
(self)
testing/test_recwarn.py:102
↓ 1 callersMethodtest_make
(self, tmp_path)
testing/test_tmpdir.py:235
↓ 1 callersFunctiontest_parameterset_for_parametrize_marks
( pytester: Pytester, mark: Optional[str] )
testing/test_mark.py:943
↓ 1 callersMethodtest_simple
(self, tmpfile: BinaryIO)
testing/test_capture.py:957
↓ 1 callersMethodtest_simple_many
(self, tmpfile: BinaryIO)
testing/test_capture.py:971
↓ 1 callersMethodtoterminal
(self, tw: TerminalWriter)
src/_pytest/_code/code.py:976
↓ 1 callersMethodtoterminal
(self, tw: TerminalWriter)
src/_pytest/_code/code.py:1183
↓ 1 callersFunctiontraverse_node
Recursively yield node and all its children in depth-first order.
src/_pytest/assertion/rewrite.py:550
↓ 1 callersFunctiontry_argcomplete
(parser: argparse.ArgumentParser)
src/_pytest/_argcomplete.py:108
↓ 1 callersFunctiontry_cleanup
Try to cleanup a folder if we can ensure it's deletable.
src/_pytest/pathlib.py:320
↓ 1 callersFunctionundo
()
src/_pytest/assertion/__init__.py:96
↓ 1 callersMethodupdate_testcase_duration
Accumulate total duration for nodeid from given report and update the Junit.testcase with the new total if already created.
src/_pytest/junitxml.py:620
↓ 1 callersMethodwarn
Issue a cache warning. :meta private:
src/_pytest/cacheprovider.py:107
↓ 1 callersFunctionwarning_record_to_str
Convert a warnings.WarningMessage to a string.
src/_pytest/warnings.py:84
← previousnext →901–1,000 of 4,602, ranked by callers