MCPcopy Create free account

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

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

↓ 6 callersMethodtoterminal
(self, out: TerminalWriter)
src/_pytest/reports.py:77
↓ 5 callersMethod_add_simple
(self, tag: str, message: str, data: Optional[str] = None)
src/_pytest/junitxml.py:157
↓ 5 callersMethod_addexcinfo
(self, rawexcinfo: "_SysExcInfoType")
src/_pytest/unittest.py:207
↓ 5 callersFunction_call_with_optional_argument
Call the given function with the given argument if func accepts one argument, otherwise calls func without arguments.
src/_pytest/python.py:760
↓ 5 callersMethod_fillfixtures
(self)
src/_pytest/fixtures.py:573
↓ 5 callersFunction_get_first_non_fixture_func
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 calli
src/_pytest/python.py:772
↓ 5 callersMethod_repr_failure_py
( self, excinfo: ExceptionInfo[BaseException], style: "Optional[_TracebackStyle]" = No
src/_pytest/nodes.py:429
↓ 5 callersMethod_rget_with_confmod
( self, name: str, path: Path, importmode: Union[str, ImportMode], roo
src/_pytest/config/__init__.py:570
↓ 5 callersMethod_run_doctest_report
(self, pytester, format)
testing/test_doctest.py:1415
↓ 5 callersMethod_start
(self)
src/_pytest/capture.py:816
↓ 5 callersMethodaddfinalizer
Add finalizer/teardown function to be called after the last test within the requesting test context finished execution.
src/_pytest/fixtures.py:792
↓ 5 callersFunctioncatch_warnings_for_item
Context manager that catches warnings generated in the contained execution block. ``item`` can be None if we are not in the context of an item ex
src/_pytest/warnings.py:29
↓ 5 callersMethodcollect_by_name
Return the collection node for name from the module collection. Searches a module collection node for a collection node matching the
src/_pytest/pytester.py:1290
↓ 5 callersMethodcreate_file
(self, pytester: Pytester, mark="")
testing/test_warnings.py:436
↓ 5 callersMethodfail
()
testing/code/test_excinfo.py:271
↓ 5 callersMethodfor_config
Create the Cache instance for a Config. :meta private:
src/_pytest/cacheprovider.py:75
↓ 5 callersMethodfrom_parent
The public constructor.
src/_pytest/python.py:786
↓ 5 callersMethodfrom_parent
Public constructor for Nodes. This indirection got introduced in order to enable removing the fragile logic from the node constructor
src/_pytest/nodes.py:249
↓ 5 callersFunctionget_common_ancestor
(paths: Iterable[Path])
src/_pytest/config/findpaths.py:114
↓ 5 callersFunctiongetlocation
(function, curdir: Optional[str] = None)
src/_pytest/compat.py:86
↓ 5 callersMethodgetoption
(self, name)
testing/test_assertion.py:22
↓ 5 callersMethodgetoption
(self, name: str)
testing/test_assertrewrite.py:1812
↓ 5 callersMethodgetstatement
Return Source statement which contains the given linenumber (counted from 0).
src/_pytest/_code/source.py:90
↓ 5 callersMethodhelper
Call a helper in this module.
src/_pytest/assertion/rewrite.py:784
↓ 5 callersMethodissue_config_time_warning
Issue and handle a warning during the "configure" stage. During ``pytest_configure`` we can't capture warnings using the ``catch_warnings_for
src/_pytest/config/__init__.py:1318
↓ 5 callersMethodline
(self, line, **kw)
testing/conftest.py:90
↓ 5 callersMethodparse_known_and_unknown_args
Parse and return a namespace object with known arguments, and the remaining arguments unknown at this point.
src/_pytest/config/argparsing.py:154
↓ 5 callersMethodpytest_deselected
(self, items: Sequence[Item])
src/_pytest/terminal.py:493
↓ 5 callersMethodrepr_excinfo
( self, excinfo: ExceptionInfo[BaseException] )
src/_pytest/_code/code.py:913
↓ 5 callersMethodrepr_locals
(self, locals: Mapping[str, object])
src/_pytest/_code/code.py:776
↓ 5 callersFunctionrunpdb_and_get_report
(pytester: Pytester, source: str)
testing/test_debugging.py:31
↓ 5 callersMethodsleep
(self, seconds)
testing/conftest.py:201
↓ 5 callersMethodsnap
(self)
src/_pytest/capture.py:452
↓ 5 callersFunctionwcswidth
Determine how many columns are needed to display a string in a terminal. Returns -1 if the string contains non-printable characters.
src/_pytest/_io/wcwidth.py:44
↓ 4 callersFunctionConftestWithSetinitial
(path)
testing/test_conftest.py:20
↓ 4 callersFunctionStdCaptureFD
( out: bool = True, err: bool = True, in_: bool = True )
testing/test_capture.py:28
↓ 4 callersMethod__init__
(self, handler: _HandlerType, level: Optional[int] = None)
src/_pytest/logging.py:304
↓ 4 callersMethod_add_stats
(self, category: str, items: Sequence[Any])
src/_pytest/terminal.py:459
↓ 4 callersMethod_approx_scalar
(self, x)
src/_pytest/python_api.py:115
↓ 4 callersFunction_get_checker
Return a doctest.OutputChecker subclass that supports some additional options: * ALLOW_UNICODE and ALLOW_BYTES options to ignore u'' and b''
src/_pytest/doctest.py:672
↓ 4 callersMethod_get_verbose_word
(self, config: Config)
src/_pytest/reports.py:199
↓ 4 callersMethod_getfailureheadline
(self, rep)
src/_pytest/terminal.py:871
↓ 4 callersMethod_getparser
(self)
src/_pytest/config/argparsing.py:116
↓ 4 callersMethod_getreprcrash
(self)
src/_pytest/_code/code.py:602
↓ 4 callersFunction_is_setup_py
(path: Path)
src/_pytest/doctest.py:139
↓ 4 callersMethod_opentestcase
(self, report: TestReport)
src/_pytest/junitxml.py:527
↓ 4 callersMethod_preparse
(self, args: List[str], addopts: bool = True)
src/_pytest/config/__init__.py:1161
↓ 4 callersFunction_read_pyc
Possibly read a pytest pyc containing rewritten code. Return rewritten code if successful or None if not.
src/_pytest/assertion/rewrite.py:368
↓ 4 callersFunction_strip_resource_warnings
(lines)
testing/test_stepwise.py:80
↓ 4 callersMethodaccept
(self, type: TokenType, *, reject: bool = False)
src/_pytest/mark/expression.py:110
↓ 4 callersMethodadd_marker
Dynamically add a marker object to the node. :param append: Whether to append the marker, or prepend it.
src/_pytest/nodes.py:338
↓ 4 callersMethodassert_contains
(self, entries: Sequence[Tuple[str, str]])
src/_pytest/pytester.py:280
↓ 4 callersMethodcollect
(self)
src/_pytest/python.py:793
↓ 4 callersFunctioncommonpath
Return the common part shared with the other path, or None if there is no common part. If one path is relative and one is absolute, returns N
src/_pytest/pathlib.py:668
↓ 4 callersMethodconsider_module
:meta private:
src/_pytest/config/__init__.py:707
↓ 4 callersMethodcut
Return a Traceback instance wrapping part of this Traceback. By providing any combination of path, lineno and firstlineno, the first
src/_pytest/_code/code.py:345
↓ 4 callersMethoddisplay
Call saferepr on the expression.
src/_pytest/assertion/rewrite.py:780
↓ 4 callersFunctionf
(e, order)
doc/en/example/fixtures/test_fixtures_order_autouse.py:35
↓ 4 callersMethodfind_nth_by_tag
(self, tag, n)
testing/test_junitxml.py:101
↓ 4 callersFunctionfindsource
(obj)
src/_pytest/_code/source.py:119
↓ 4 callersMethodfrom_call
Call func, wrapping the result in a CallInfo. :param func: The function to call. Called without arguments. :param when:
src/_pytest/runner.py:318
↓ 4 callersFunctionfunc
(msg)
testing/example_scripts/warnings/test_group_warnings_by_message_summary/test_1.py:6
↓ 4 callersFunctiong
()
testing/code/test_excinfo.py:57
↓ 4 callersMethodgenitems
( self, node: Union[nodes.Item, nodes.Collector] )
src/_pytest/main.py:816
↓ 4 callersMethodget
Return the cached value for the given key. If no value was yet cached or the value cannot be read, the specified default is returned.
src/_pytest/cacheprovider.py:146
↓ 4 callersMethodget_cached_last_failed
(self, pytester: Pytester)
testing/test_cacheprovider.py:673
↓ 4 callersFunctionget_config
( args: Optional[List[str]] = None, plugins: Optional[Sequence[Union[str, _PluggyPlugin]]] = None, )
src/_pytest/config/__init__.py:268
↓ 4 callersFunctionget_lock_path
(path: _AnyPurePath)
src/_pytest/pathlib.py:62
↓ 4 callersMethodget_reported_items
Return pytest.Item instances reported by the pytest_collectreport hook
testing/test_collection.py:485
↓ 4 callersFunctiongetimfunc
(func)
src/_pytest/compat.py:310
↓ 4 callersMethodgetreports
(self, name: str)
src/_pytest/terminal.py:889
↓ 4 callersFunctiongetstatementrange_ast
( lineno: int, source: Source, assertion: bool = False, astnode: Optional[ast.AST] = None, )
src/_pytest/_code/source.py:173
↓ 4 callersMethodisatty
(self)
src/_pytest/capture.py:206
↓ 4 callersMethodisinitpath
(self, path: Union[str, "os.PathLike[str]"])
src/_pytest/main.py:528
↓ 4 callersMethodmatchreport
Return a testreport whose dotted import path matches.
src/_pytest/pytester.py:351
↓ 4 callersFunctionmaybe_delete_a_numbered_dir
Remove a numbered directory if its lock can be obtained and it does not seem to be in use.
src/_pytest/pathlib.py:264
↓ 4 callersMethodnode_reporter
(self, report: Union[TestReport, str])
src/_pytest/junitxml.py:505
↓ 4 callersMethodparse_known_args
Parse and return a namespace object with known arguments at this point.
src/_pytest/config/argparsing.py:146
↓ 4 callersFunctionparse_warning_filter
Parse a warnings filter string. This is copied from warnings._setoption with the following changes: * Does not apply the filter. * Escap
src/_pytest/config/__init__.py:1594
↓ 4 callersMethodparsefactories
( self, node_or_obj, nodeid=NOTSET, unittest: bool = False )
src/_pytest/fixtures.py:1601
↓ 4 callersMethodpopen
Invoke :py:class:`subprocess.Popen`. Calls :py:class:`subprocess.Popen` making sure the current working directory is in ``PYTHONPATH`
src/_pytest/pytester.py:1308
↓ 4 callersMethodpytest_collectreport
(self, report: TestReport)
src/_pytest/junitxml.py:627
↓ 4 callersMethodrecursionindex
Return the index of the frame/TracebackEntry where recursion originates if appropriate, None if no recursion occurred.
src/_pytest/_code/code.py:419
↓ 4 callersMethodreset
(self)
src/_pytest/logging.py:340
↓ 4 callersFunctionresolve_package_path
Return the Python package path by looking for the last directory upwards which still contains an __init__.py. Returns None if it can not be d
src/_pytest/pathlib.py:613
↓ 4 callersMethodresume
(self)
src/_pytest/capture.py:685
↓ 4 callersFunctionrewrite
(src: str)
testing/test_assertrewrite.py:38
↓ 4 callersMethodsep
(self, sep, line=None)
testing/conftest.py:78
↓ 4 callersMethodset_fixture
(self, capture_fixture: "CaptureFixture[Any]")
src/_pytest/capture.py:695
↓ 4 callersMethodstop_global_capturing
(self)
src/_pytest/capture.py:664
↓ 4 callersMethodsuspend
(self, in_: bool = False)
src/_pytest/capture.py:680
↓ 4 callersMethodunset_fixture
(self)
src/_pytest/capture.py:706
↓ 4 callersFunctionvisit
Walk a directory recursively, in breadth-first order. Entries at each directory level are sorted.
src/_pytest/pathlib.py:630
↓ 4 callersFunctionwrap_session
Skeleton command line program.
src/_pytest/main.py:255
↓ 3 callersMethod__eq__
(self, actual)
src/_pytest/python_api.py:98
↓ 3 callersFunction_as_numpy_array
Return an ndarray if the given object is implicitly convertible to ndarray, and numpy is already imported, otherwise None.
src/_pytest/python_api.py:732
↓ 3 callersFunction_compare_approx
( full_object: object, message_data: Sequence[Tuple[str, str, str]], number_of_elements: int,
src/_pytest/python_api.py:43
↓ 3 callersMethod_create
(self, *k, **kw)
src/_pytest/nodes.py:138
↓ 3 callersMethod_fail
(self, msg: str)
src/_pytest/pytester.py:1740
↓ 3 callersFunction_format_repr_exception
(exc: BaseException, obj: object)
src/_pytest/_io/saferepr.py:18
← previousnext →201–300 of 4,602, ranked by callers