MCPcopy Create free account

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

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

↓ 2 callersMethodto_xml
(self)
src/_pytest/junitxml.py:149
↓ 2 callersFunctiontry_makedirs
Attempt to create the given directory and sub-directories exist. Returns True if successful or if it already exists.
src/_pytest/assertion/rewrite.py:1101
↓ 2 callersFunctionvalidate_basetemp
(path: str)
src/_pytest/main.py:230
↓ 2 callersFunctionwcwidth
Determine how many columns are needed to display a character in a terminal. Returns -1 if the character is not printable. Returns 0, 1 or 2 f
src/_pytest/_io/wcwidth.py:6
↓ 2 callersMethodwith_args
Return a MarkDecorator with extra arguments added. Unlike calling the MarkDecorator, with_args() can be used even if the sole argumen
src/_pytest/mark/structures.py:332
↓ 2 callersMethodwrap
(f)
testing/python/integration.py:104
↓ 2 callersFunctionwrap_pytest_function_for_tracing
Change the Python function object of the given Function item by a wrapper which actually enters pdb before calling the python function itself,
src/_pytest/debugging.py:310
↓ 2 callersMethodwrite_captured_output
(self, report: TestReport)
src/_pytest/junitxml.py:162
↓ 2 callersFunctionwrite_docstring
(tw: TerminalWriter, doc: str, indent: str = " ")
src/_pytest/python.py:1589
↓ 2 callersMethodwrite_ensure_prefix
(self, prefix: str, extra: str = "", **kwargs)
src/_pytest/terminal.py:399
↓ 2 callersMethodwrite_fspath_result
(self, nodeid: str, res, **markup: bool)
src/_pytest/terminal.py:388
↓ 2 callersMethodwriteorg
Write to original file descriptor.
src/_pytest/capture.py:460
↓ 2 callersFunctionx
()
testing/code/test_code.py:39
↓ 1 callersFunctionStdCapture
( out: bool = True, err: bool = True, in_: bool = True )
testing/test_capture.py:38
↓ 1 callersMethod__attrs_post_init__
(self)
src/_pytest/_code/code.py:987
↓ 1 callersMethod__call__
(self, *k, **kw)
src/_pytest/nodes.py:129
↓ 1 callersMethod__class__
(self)
testing/test_compat.py:188
↓ 1 callersMethod__exit__
( self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException],
src/_pytest/recwarn.py:213
↓ 1 callersMethod__exit__
( self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException],
src/_pytest/recwarn.py:261
↓ 1 callersMethod__init__
( self, expected_warning: Optional[ Union[Type[Warning], Tuple[Type[Warning], ...]
src/_pytest/recwarn.py:232
↓ 1 callersMethod__init__
( self, fspath: Optional[LEGACY_PATH], parent: nodes.Collector, # NOTE: follow
src/_pytest/python.py:644
↓ 1 callersMethod__init__
(self)
src/_pytest/capture.py:170
↓ 1 callersMethod__init__
(self, obj: CodeType)
src/_pytest/_code/code.py:65
↓ 1 callersMethod_addfinalizer
(self, finalizer: Callable[[], object], scope)
src/_pytest/fixtures.py:553
↓ 1 callersFunction_assertion_supported
()
src/_pytest/config/__init__.py:1542
↓ 1 callersMethod_build_collect_only_summary_stats_line
( self, )
src/_pytest/terminal.py:1213
↓ 1 callersMethod_build_normal_summary_stats_line
( self, )
src/_pytest/terminal.py:1194
↓ 1 callersMethod_by_tag
(self, tag)
testing/test_junitxml.py:88
↓ 1 callersFunction_bytes_to_ascii
(val: bytes)
src/_pytest/compat.py:227
↓ 1 callersFunction_check_all_skipped
Raise pytest.skip() if all examples in the given DocTest have the SKIP option set.
src/_pytest/doctest.py:445
↓ 1 callersFunction_check_initialpaths_for_relpath
(session: "Session", path: Path)
src/_pytest/nodes.py:560
↓ 1 callersMethod_check_non_top_pytest_plugins
( self, mod: types.ModuleType, conftestpath: Path, )
src/_pytest/config/__init__.py:623
↓ 1 callersMethod_check_type
Raise a TypeError if the expected value is not a valid type.
src/_pytest/python_api.py:127
↓ 1 callersMethod_checkversion
(self)
src/_pytest/config/__init__.py:1224
↓ 1 callersMethod_collectfile
( self, fspath: Path, handle_dupes: bool = True )
src/_pytest/python.py:704
↓ 1 callersMethod_collectfile
( self, fspath: Path, handle_dupes: bool = True )
src/_pytest/main.py:567
↓ 1 callersFunction_colorama_workaround
Ensure colorama is imported so that it attaches to the correct stdio handles on Windows. colorama uses the terminal on import time. So if som
src/_pytest/capture.py:56
↓ 1 callersFunction_compare_eq_cls
(left: Any, right: Any, verbose: int)
src/_pytest/assertion/util.py:429
↓ 1 callersFunction_compare_eq_dict
( left: Mapping[Any, Any], right: Mapping[Any, Any], verbose: int = 0 )
src/_pytest/assertion/util.py:388
↓ 1 callersFunction_compare_eq_iterable
( left: Iterable[Any], right: Iterable[Any], verbose: int = 0 )
src/_pytest/assertion/util.py:287
↓ 1 callersFunction_compare_eq_sequence
( left: Sequence[Any], right: Sequence[Any], verbose: int = 0 )
src/_pytest/assertion/util.py:318
↓ 1 callersFunction_compare_eq_set
( left: AbstractSet[Any], right: AbstractSet[Any], verbose: int = 0 )
src/_pytest/assertion/util.py:371
↓ 1 callersFunction_compare_eq_verbose
(left: Any, right: Any)
src/_pytest/assertion/util.py:263
↓ 1 callersMethod_compute_fixture_value
Create a SubRequest based on "self" and call the execute method of the given FixtureDef object. This will force the FixtureDef object
src/_pytest/fixtures.py:623
↓ 1 callersMethod_consider_importhook
Install the PEP 302 import hook if using assertion rewriting. Needs to parse the --assert=<mode> option from the commandline and find
src/_pytest/config/__init__.py:1109
↓ 1 callersMethod_create_formatter
(self, log_format, log_date_format, auto_indent)
src/_pytest/logging.py:590
↓ 1 callersMethod_determine_main_color
(self, unknown_type_seen: bool)
src/_pytest/terminal.py:1143
↓ 1 callersMethod_determine_show_progress_info
Return whether we should display progress information based on the current config.
src/_pytest/terminal.py:337
↓ 1 callersMethod_disable_output_capturing_for_darwin
Disable output capturing. Otherwise, stdout is lost to doctest (#985).
src/_pytest/doctest.py:298
↓ 1 callersMethod_dump_lines
(self, lines, fp)
src/_pytest/pytester.py:1430
↓ 1 callersMethod_early_rewrite_bailout
A fast way to get out of rewriting modules. Profiling has shown that the call to PathFinder.find_spec (inside of the find_spec from t
src/_pytest/assertion/rewrite.py:173
↓ 1 callersMethod_ensure_relative_to_basetemp
(self, basename: str)
src/_pytest/tmpdir.py:72
↓ 1 callersFunction_ensure_removed_sysmodule
(modname: str)
src/_pytest/config/__init__.py:778
↓ 1 callersMethod_ensure_supporting_files
Create supporting files in the cache dir that are not really part of the cache.
src/_pytest/cacheprovider.py:196
↓ 1 callersFunction_enter_pdb
( node: Node, excinfo: ExceptionInfo[BaseException], rep: BaseReport )
src/_pytest/debugging.py:336
↓ 1 callersFunction_eval_scope_callable
( scope_callable: "Callable[[str, Config], _ScopeName]", fixture_name: str, config: Config, )
src/_pytest/fixtures.py:940
↓ 1 callersMethod_factorytraceback
(self)
src/_pytest/fixtures.py:721
↓ 1 callersMethod_finalize
Finalize the fixture. This restores the log levels changed by :meth:`set_level`.
src/_pytest/logging.py:364
↓ 1 callersMethod_for_parametrize
( cls, argnames: Union[str, List[str], Tuple[str, ...]], argvalues: Iterable[Union["Pa
src/_pytest/mark/structures.py:156
↓ 1 callersFunction_force_symlink
Helper to create the current symlink. It's full of race conditions that are reasonably OK to ignore for the context of best effort linking to
src/_pytest/pathlib.py:187
↓ 1 callersFunction_format_lines
Format the individual lines. This will replace the '{', '}' and '~' characters of our mini formatting language with the proper 'where ...', '
src/_pytest/assertion/util.py:67
↓ 1 callersMethod_genfunctions
(self, name: str, funcobj)
src/_pytest/python.py:455
↓ 1 callersMethod_get_direct_parametrize_args
Return all direct parametrization arguments of a node, so we don't mistake them for fixtures. Check https://github.com/pytest-dev/pyt
src/_pytest/fixtures.py:1433
↓ 1 callersFunction_get_flag_lookup
()
src/_pytest/doctest.py:379
↓ 1 callersMethod_get_global_properties_node
Return a Junit node containing custom properties, if any.
src/_pytest/junitxml.py:689
↓ 1 callersMethod_get_increasing_order
(self, items: Iterable[nodes.Item])
src/_pytest/cacheprovider.py:421
↓ 1 callersFunction_get_kind
(issue)
extra/get_issues.py:47
↓ 1 callersMethod_get_override_ini_value
(self, name: str)
src/_pytest/config/__init__.py:1462
↓ 1 callersMethod_get_pdb_wrapper_class
(cls, pdb_cls, capman: Optional["CaptureManager"])
src/_pytest/debugging.py:151
↓ 1 callersFunction_get_report_choice
Return the actual `doctest` module flag value. We want to do it as late as possible to avoid importing `doctest` and all its dependencies whe
src/_pytest/doctest.py:713
↓ 1 callersMethod_get_teardown_reports
(self, nodeid: str)
src/_pytest/terminal.py:960
↓ 1 callersMethod_getautousenames
Return the names of autouse fixtures applicable to nodeid.
src/_pytest/fixtures.py:1492
↓ 1 callersMethod_getcrashline
(self, rep)
src/_pytest/terminal.py:877
↓ 1 callersMethod_getindent
(self, source: "Source")
src/_pytest/_code/code.py:702
↓ 1 callersMethod_getini
(self, name: str)
src/_pytest/config/__init__.py:1388
↓ 1 callersMethod_getini_unknown_type
(self, name: str, type: str, value: Union[str, List[str]])
src/_pytest/config/__init__.py:1384
↓ 1 callersMethod_getnextfixturedef
(self, argname: str)
src/_pytest/fixtures.py:470
↓ 1 callersMethod_getobj
Get the underlying Python object. May be overwritten by subclasses.
src/_pytest/python.py:307
↓ 1 callersMethod_has_param_ids
(self)
src/_pytest/mark/structures.py:232
↓ 1 callersMethod_highlight
Highlight the given source code if we have markup support.
src/_pytest/_io/terminalwriter.py:196
↓ 1 callersFunction_idvalset
( idx: int, parameterset: ParameterSet, argnames: Iterable[str], idfn: Optional[Callable[[Any]
src/_pytest/python.py:1406
↓ 1 callersFunction_ignore_error
(exception)
src/_pytest/pathlib.py:55
↓ 1 callersMethod_import_pdb_cls
(cls, capman: Optional["CaptureManager"])
src/_pytest/debugging.py:112
↓ 1 callersMethod_importtestmodule
(self)
src/_pytest/python.py:595
↓ 1 callersFunction_init_checker_class
()
src/_pytest/doctest.py:584
↓ 1 callersFunction_init_runner_class
()
src/_pytest/doctest.py:176
↓ 1 callersMethod_initini
(self, args: Sequence[str])
src/_pytest/config/__init__.py:1084
↓ 1 callersMethod_inject_setup_function_fixture
Inject a hidden autouse, function scoped fixture into the collected module object that invokes setup_function/teardown_function if either or b
src/_pytest/python.py:561
↓ 1 callersMethod_inject_setup_method_fixture
Inject a hidden autouse, function scoped fixture into the collected class object that invokes setup_method/teardown_method if either or both a
src/_pytest/python.py:853
↓ 1 callersMethod_inject_setup_module_fixture
Inject a hidden autouse, module scoped fixture into the collected module object that invokes setUpModule/tearDownModule if either or both are
src/_pytest/python.py:518
↓ 1 callersMethod_inject_setup_teardown_fixtures
Injects a hidden auto-use fixture to invoke setUpClass/setup_method and corresponding teardown functions (#517).
src/_pytest/unittest.py:96
↓ 1 callersFunction_is_doctest
(config: Config, path: Path, parent: Collector)
src/_pytest/doctest.py:146
↓ 1 callersFunction_is_numpy_array
Return true if the given object is implicitly convertible to ndarray, and numpy is already imported.
src/_pytest/python_api.py:724
↓ 1 callersFunction_is_same
(f1: str, f2: str)
src/_pytest/pathlib.py:562
↓ 1 callersMethod_is_started
Whether actively capturing -- not disabled or closed.
src/_pytest/capture.py:860
↓ 1 callersFunction_iter_all_modules
Iterate over the names of all modules that can be found in the given package, recursively. >>> import _pytest >>> list(_iter_all_
src/_pytest/freeze_support.py:18
↓ 1 callersFunction_make_xunit_fixture
( obj: type, setup_name: str, teardown_name: str, cleanup_name: Optional[str], scope: Scop
src/_pytest/unittest.py:122
↓ 1 callersMethod_mark_plugins_for_rewrite
Given an importhook, mark for rewrite any top-level modules or packages in the distribution package for all pytest plugins.
src/_pytest/config/__init__.py:1129
↓ 1 callersFunction_mk_tmp
(request: FixtureRequest, factory: TempPathFactory)
src/_pytest/tmpdir.py:189
↓ 1 callersMethod_node_location_to_relpath
(self, node_path: Path)
src/_pytest/main.py:505
← previousnext →601–700 of 4,602, ranked by callers