MCPcopy Create free account

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

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

↓ 3 callersFunction_format_trimmed
Format msg into format, ellipsizing it if doesn't fit in available_width. Returns None if even the ellipsis can't fit.
src/_pytest/terminal.py:1251
↓ 3 callersMethod_get_active_fixturedef
( self, argname: str )
src/_pytest/fixtures.py:595
↓ 3 callersMethod_get_main_color
(self)
src/_pytest/terminal.py:1136
↓ 3 callersFunction_get_multicapture
(method: "_CaptureMethod")
src/_pytest/capture.py:601
↓ 3 callersFunction_get_pos
(config: Config, rep: BaseReport)
src/_pytest/terminal.py:1246
↓ 3 callersMethod_get_progress_information_message
(self)
src/_pytest/terminal.py:596
↓ 3 callersFunction_get_raw_skip_reason
Get the reason string of a skip/xfail/xpass test report. The string is just the part given by the user.
src/_pytest/terminal.py:1376
↓ 3 callersMethod_getlines
(self, lines2: Union[str, Sequence[str], Source])
src/_pytest/pytester.py:1547
↓ 3 callersMethod_getpytestargs
(self)
src/_pytest/pytester.py:1437
↓ 3 callersMethod_getvaluepath
(self, key: str)
src/_pytest/cacheprovider.py:143
↓ 3 callersMethod_init_pdb
Initialize PDB debugging, dropping any IO capturing.
src/_pytest/debugging.py:238
↓ 3 callersFunction_is_skipped
Return True if the given object has been marked with @unittest.skip.
src/_pytest/unittest.py:403
↓ 3 callersMethod_log
(self, *args)
src/_pytest/pytester.py:1589
↓ 3 callersMethod_makefile
( self, ext: str, lines: Sequence[Union[Any, bytes]], files: Dict[str, str],
src/_pytest/pytester.py:768
↓ 3 callersMethod_outrep_summary
(self, rep: BaseReport)
src/_pytest/terminal.py:1017
↓ 3 callersMethod_parse_parametrize_args
( argnames: Union[str, List[str], Tuple[str, ...]], argvalues: Iterable[Union["ParameterSet",
src/_pytest/mark/structures.py:133
↓ 3 callersFunction_recursive_list_map
(f, x)
src/_pytest/python_api.py:137
↓ 3 callersMethod_runtest_for
Implement the internals of the pytest_runtest_xxx() hooks.
src/_pytest/logging.py:693
↓ 3 callersFunction_strtobool
Convert a string representation of truth to True or False. True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values are 'n', 'no'
src/_pytest/config/__init__.py:1575
↓ 3 callersFunction_update_current_test_var
Update :envvar:`PYTEST_CURRENT_TEST` to reflect the current item and stage. If ``when`` is None, delete ``PYTEST_CURRENT_TEST`` from the environm
src/_pytest/runner.py:185
↓ 3 callersMethod_write_progress_information_filling_space
(self)
src/_pytest/terminal.py:613
↓ 3 callersFunction_write_pyc
( state: "AssertionState", co: types.CodeType, source_stat: os.stat_result, py
src/_pytest/assertion/rewrite.py:310
↓ 3 callersMethodaddsection
(self, name: str, content: str, sep: str = "-")
src/_pytest/_code/code.py:990
↓ 3 callersMethodappend_failure
(self, report: TestReport)
src/_pytest/junitxml.py:196
↓ 3 callersFunctionascii_escaped
r"""If val is pure ASCII, return it as an str, otherwise, escape bytes objects into a sequence of escaped bytes: b'\xc3\xb4\xc5\xd6' -> r'\xc
src/_pytest/compat.py:231
↓ 3 callersFunctionassert_color_not_set
()
testing/io/test_terminalwriter.py:178
↓ 3 callersMethodbuild_summary_stats_line
Build the parts used in the last summary stats line. The summary stats line is the line shown at the end, "=== 12 passed, 2 errors i
src/_pytest/terminal.py:1164
↓ 3 callersMethodcache_key
(self, request: SubRequest)
src/_pytest/fixtures.py:1071
↓ 3 callersFunctioncall_optional
(obj: object, name: str)
src/_pytest/nose.py:30
↓ 3 callersMethodchmod_r
(self, path)
testing/test_tmpdir.py:344
↓ 3 callersFunctioncollect_one_node
(collector: Collector)
src/_pytest/runner.py:541
↓ 3 callersMethodconsider_env
:meta private:
src/_pytest/config/__init__.py:703
↓ 3 callersMethodconsider_pluginarg
:meta private:
src/_pytest/config/__init__.py:673
↓ 3 callersMethodcreate_test_file
(self, pytester: Pytester, size: int)
testing/test_assertrewrite.py:1819
↓ 3 callersFunctiondeindent
(lines: Iterable[str])
src/_pytest/_code/source.py:142
↓ 3 callersMethoddelitem
Delete ``name`` from dict. Raises ``KeyError`` if it doesn't exist, unless ``raising`` is set to False.
src/_pytest/monkeypatch.py:269
↓ 3 callersMethodensure_newline
(self)
src/_pytest/terminal.py:408
↓ 3 callersMethodevaluate
Evaluate the match expression. :param matcher: Given an identifier, should return whether it matches or not. Should b
src/_pytest/mark/expression.py:215
↓ 3 callersFunctionevaluate_xfail_marks
Evaluate xfail marks on item, returning Xfail if triggered.
src/_pytest/skipping.py:205
↓ 3 callersMethodexec_module
(self, module: types.ModuleType)
src/_pytest/assertion/rewrite.py:131
↓ 3 callersMethodf
()
testing/code/test_excinfo.py:188
↓ 3 callersMethodfileno
(self)
testing/test_faulthandler.py:162
↓ 3 callersFunctionfilter_traceback
Return True if a TracebackEntry instance should be included in tracebacks. We hide traceback entries of: * dynamically generated code (no co
src/_pytest/_code/code.py:1248
↓ 3 callersMethodflush
(self)
src/_pytest/_io/terminalwriter.py:173
↓ 3 callersMethodfrom_parent
The public named constructor.
src/_pytest/doctest.py:264
↓ 3 callersMethodfrom_user
Given a scope name from the user, return the equivalent Scope enum. Should be used whenever we want to convert a user provided scope
src/_pytest/scope.py:62
↓ 3 callersMethodfromdictargs
Constructor usable for subprocesses.
src/_pytest/config/__init__.py:1061
↓ 3 callersFunctionfunc
(msg)
testing/example_scripts/warnings/test_group_warnings_by_message.py:6
↓ 3 callersFunctiong
(f, c, order)
doc/en/example/fixtures/test_fixtures_order_autouse.py:40
↓ 3 callersFunctionget_cache_dir
Return the cache directory to write .pyc files for the given .py file path.
src/_pytest/assertion/rewrite.py:1123
↓ 3 callersFunctionget_empty_parameterset_mark
( config: Config, argnames: Sequence[str], func )
src/_pytest/mark/structures.py:46
↓ 3 callersMethodget_sections
(self, prefix: str)
src/_pytest/reports.py:97
↓ 3 callersMethodget_source
Return formatted and marked up source lines.
src/_pytest/_code/code.py:731
↓ 3 callersFunctionget_stderr_fileno
()
src/_pytest/faulthandler.py:48
↓ 3 callersFunctionget_unpacked_marks
Obtain the unpacked marks that are stored on an object.
src/_pytest/mark/structures.py:363
↓ 3 callersFunctionget_user
Return the current user name, or None if getuser() does not work in the current environment (see #1010).
src/_pytest/tmpdir.py:158
↓ 3 callersMethodgetargs
Return a tuple with the argument names for the code object. If 'var' is set True also return the names of the variable and keyword ar
src/_pytest/_code/code.py:114
↓ 3 callersMethodgetcrashentry
Return last non-hidden traceback entry that lead to the exception of a traceback.
src/_pytest/_code/code.py:411
↓ 3 callersMethodgetfixtureinfo
( self, node: nodes.Node, func, cls, funcargs: bool = True )
src/_pytest/fixtures.py:1452
↓ 3 callersFunctiongetfixturemarker
Return fixturemarker or None if it doesn't exist or raised exceptions.
src/_pytest/fixtures.py:225
↓ 3 callersMethodgethookproxy
(self, fspath: "os.PathLike[str]")
src/_pytest/python.py:684
↓ 3 callersMethodgetmodpath
Return Python path relative to the containing module.
src/_pytest/python.py:314
↓ 3 callersMethodgetnode
Return the collection node of a file. :param pytest.Config config: A pytest config. See :py:meth:`parseconfig` and :py:
src/_pytest/pytester.py:966
↓ 3 callersFunctionimportorskip
Import and return the requested module ``modname``, or skip the current test if the module cannot be imported. :param str modname: Th
src/_pytest/outcomes.py:255
↓ 3 callersFunctionis_generator
(func: object)
src/_pytest/compat.py:63
↓ 3 callersMethodishidden
Return True if the current frame has a var __tracebackhide__ resolving to True. If __tracebackhide__ is a callable, it gets called wi
src/_pytest/_code/code.py:272
↓ 3 callersFunctionistext
(x: Any)
src/_pytest/assertion/util.py:106
↓ 3 callersMethoditem_capture
(self, when: str, item: Item)
src/_pytest/capture.py:748
↓ 3 callersMethodmake_hook_recorder
Create a new :py:class:`HookRecorder` for a PluginManager.
src/_pytest/pytester.py:755
↓ 3 callersMethodmark_rewrite
(self, *names: str)
src/_pytest/assertion/__init__.py:76
↓ 3 callersMethodmarkup
(self, text: str, **markup: bool)
src/_pytest/_io/terminalwriter.py:97
↓ 3 callersFunctionnormalize_mark_list
Normalize an iterable of Mark or MarkDecorator objects into a list of marks by retrieving the `mark` attribute on MarkDecorator instances.
src/_pytest/mark/structures.py:371
↓ 3 callersMethodparse
( self, args: Sequence[Union[str, "os.PathLike[str]"]], namespace: Optional[argparse.N
src/_pytest/config/argparsing.py:104
↓ 3 callersMethodparse_setoption
( self, args: Sequence[Union[str, "os.PathLike[str]"]], option: argparse.Namespace,
src/_pytest/config/argparsing.py:135
↓ 3 callersMethodpop_format_context
Format the %-formatted string with current format context. The expl_expr should be an str ast.expr instance constructed from the %-pl
src/_pytest/assertion/rewrite.py:820
↓ 3 callersMethodpush_format_context
Create a new formatting context. The format context is used for when an explanation wants to have a variable value formatted in the a
src/_pytest/assertion/rewrite.py:807
↓ 3 callersMethodrepr_args
(self, entry: TracebackEntry)
src/_pytest/_code/code.py:723
↓ 3 callersMethodrestore
(self)
src/_pytest/pytester.py:651
↓ 3 callersFunctionsaved_fd
(fd)
testing/test_capture.py:1054
↓ 3 callersMethodset_session
(self, session: Optional[Session])
src/_pytest/assertion/rewrite.py:76
↓ 3 callersFunctionsetup
(app: "sphinx.application.Sphinx")
doc/en/conf.py:424
↓ 3 callersFunctionskip
Skip an executing test with the given message. This function should be called only during testing (setup, call or teardown) or during collect
src/_pytest/outcomes.py:147
↓ 3 callersMethodsource
Return a _pytest._code.Source object for the code object's source only.
src/_pytest/_code/code.py:109
↓ 3 callersMethodstart_global_capturing
(self)
src/_pytest/capture.py:659
↓ 3 callersFunctionthread_exception_runtest_hook
()
src/_pytest/threadexception.py:60
↓ 3 callersMethodtoterminal
(self, tw: TerminalWriter)
src/_pytest/_code/code.py:1125
↓ 3 callersFunctionunraisable_exception_runtest_hook
()
src/_pytest/unraisableexception.py:62
↓ 3 callersMethodvariable
Get a new variable.
src/_pytest/assertion/rewrite.py:767
↓ 3 callersMethodwrite
(self, msg, **kw)
testing/conftest.py:81
↓ 3 callersFunctionxfail
Imperatively xfail an executing test or setup function with the given reason. This function should be called only during testing (setup, call or
src/_pytest/outcomes.py:241
↓ 2 callersMethod__get__
( self, instance: None, owner: Optional[Type[_S]] = ... )
src/_pytest/compat.py:369
↓ 2 callersMethod__init__
( self, name: str, parent: "Union[DoctestTextfile, DoctestModule]", runner: Op
src/_pytest/doctest.py:250
↓ 2 callersMethod__init__
( self, name: str, parent: "Optional[Node]" = None, config: Optional[Config] =
src/_pytest/nodes.py:185
↓ 2 callersMethod__init__
( self, msg: str = "unknown reason", returncode: Optional[int] = None )
src/_pytest/outcomes.py:83
↓ 2 callersMethod__init__
( self, pluginmanager: PytestPluginManager, *, invocation_params: Optional[Inv
src/_pytest/config/__init__.py:897
↓ 2 callersMethod__init__
( self, usage: Optional[str] = None, processopt: Optional[Callable[["Argument"], None]
src/_pytest/config/argparsing.py:43
↓ 2 callersMethod__take_sys_modules_snapshot
(self)
src/_pytest/pytester.py:743
↓ 2 callersMethod_addoption_instance
(self, option: "Argument", shortupper: bool = False)
src/_pytest/config/argparsing.py:377
↓ 2 callersFunction_ascii_escaped_by_config
(val: Union[str, bytes], config: Optional[Config])
src/_pytest/python.py:1350
↓ 2 callersFunction_check_path
(path: Path, fspath: LEGACY_PATH)
src/_pytest/nodes.py:96
← previousnext →301–400 of 4,602, ranked by callers