MCPcopy Create free account

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

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

↓ 1 callersFunction_notin_text
(term: str, text: str, verbose: int = 0)
src/_pytest/assertion/util.py:476
↓ 1 callersFunction_parse_ini_config
Parse the given generic '.ini' file using legacy IniConfig parser, returning the parsed object. Raise UsageError if the file cannot be parsed
src/_pytest/config/findpaths.py:23
↓ 1 callersMethod_parse_parametrize_parameters
( argvalues: Iterable[Union["ParameterSet", Sequence[object], object]], force_tuple: bool,
src/_pytest/mark/structures.py:147
↓ 1 callersMethod_prepare_content
(self, content: str, header: str)
src/_pytest/junitxml.py:185
↓ 1 callersFunction_prepareconfig
( args: Optional[Union[List[str], "os.PathLike[str]"]] = None, plugins: Optional[Sequence[Union[str, _
src/_pytest/config/__init__.py:304
↓ 1 callersMethod_printcollecteditems
(self, items: Sequence[Item])
src/_pytest/terminal.py:758
↓ 1 callersMethod_processopt
(self, opt: "Argument")
src/_pytest/config/__init__.py:1070
↓ 1 callersMethod_prunetraceback
(self, excinfo: ExceptionInfo[BaseException])
src/_pytest/nodes.py:426
↓ 1 callersMethod_remove_unwanted_precision
(self, want: str, got: str)
src/_pytest/doctest.py:645
↓ 1 callersFunction_reopen_stdio
(f, mode)
src/_pytest/capture.py:108
↓ 1 callersMethod_replace
( self, *, out: Optional[AnyStr] = None, err: Optional[AnyStr] = None )
src/_pytest/capture.py:493
↓ 1 callersFunction_report_kwargs_from_json
Return **kwargs that can be used to construct a TestReport or CollectReport instance. This was originally the serialize_report() function fro
src/_pytest/reports.py:520
↓ 1 callersFunction_report_to_json
Return the contents of this report as a dict of builtin entries, suitable for serialization. This was originally the serialize_report() funct
src/_pytest/reports.py:447
↓ 1 callersFunction_report_unserialization_failure
( type_name: str, report_class: Type[BaseReport], reportdict )
src/_pytest/reports.py:229
↓ 1 callersMethod_repr_compare
(self, other_side: Any)
src/_pytest/python_api.py:91
↓ 1 callersMethod_resolve_arg_ids
Resolve the actual ids for the given argnames, based on the ``ids`` parameter given to ``parametrize``. :param List[str] argnames: Li
src/_pytest/python.py:1175
↓ 1 callersMethod_resolve_arg_value_types
Resolve if each parametrized argument must be considered a parameter to a fixture or a "funcarg" to the function, based on the ``indir
src/_pytest/python.py:1245
↓ 1 callersFunction_resolve_warning_category
Copied from warnings._getcategory, but changed so it lets exceptions (specially ImportErrors) propagate so we can get access to their traceba
src/_pytest/config/__init__.py:1665
↓ 1 callersMethod_resume
Resume this fixture's own capturing temporarily.
src/_pytest/capture.py:855
↓ 1 callersMethod_schedule_finalizers
( self, fixturedef: "FixtureDef[object]", subrequest: "SubRequest" )
src/_pytest/fixtures.py:697
↓ 1 callersMethod_set_opt_strings
Directly from optparse. Might not be necessary as this is passed to argparse later on.
src/_pytest/config/argparsing.py:297
↓ 1 callersFunction_setup_fixtures
Used by DoctestTextfile and DoctestItem to setup fixture information.
src/_pytest/doctest.py:568
↓ 1 callersMethod_setup_tree
(self, pytester: Pytester)
testing/test_conftest.py:465
↓ 1 callersMethod_should_rewrite
(self, name: str, fn: str, state: "AssertionState")
src/_pytest/assertion/rewrite.py:212
↓ 1 callersFunction_should_truncate_item
Whether or not this test item is eligible for truncation.
src/_pytest/assertion/truncate.py:27
↓ 1 callersFunction_split_explanation
r"""Return a list of individual lines in the explanation. This will return a list of lines split on '\n{', '\n}' and '\n~'. Any other newline
src/_pytest/assertion/util.py:50
↓ 1 callersFunction_strip_resource_warnings
(lines)
testing/test_runner.py:576
↓ 1 callersFunction_surrounding_parens_on_own_lines
Move opening/closing parenthesis/bracket to own lines.
src/_pytest/assertion/util.py:275
↓ 1 callersMethod_suspend
Suspend this fixture's own capturing temporarily.
src/_pytest/capture.py:850
↓ 1 callersFunction_translate_non_printable
(s: str)
src/_pytest/compat.py:220
↓ 1 callersFunction_truncate_by_char_count
(input_lines: List[str], max_chars: int)
src/_pytest/assertion/truncate.py:75
↓ 1 callersFunction_truncate_explanation
Truncate given list of strings that makes up the assertion explanation. Truncates to either 8 lines, or 640 characters - whichever the input reac
src/_pytest/assertion/truncate.py:33
↓ 1 callersMethod_truncate_recursive_traceback
Truncate the given recursive traceback trying to find the starting point of the recursion. The detection is done by going through eac
src/_pytest/_code/code.py:871
↓ 1 callersMethod_try_load_conftest
( self, anchor: Path, importmode: Union[str, ImportMode], rootpath: Path )
src/_pytest/config/__init__.py:531
↓ 1 callersFunction_try_repr_or_str
(obj: object)
src/_pytest/_io/saferepr.py:9
↓ 1 callersMethod_validate_args
Validate known args.
src/_pytest/config/__init__.py:1149
↓ 1 callersMethod_validate_config_options
(self)
src/_pytest/config/__init__.py:1247
↓ 1 callersMethod_validate_ids
( self, ids: Iterable[Union[None, str, float, int, bool]], parameters: Sequence[Parame
src/_pytest/python.py:1208
↓ 1 callersMethod_validate_if_using_arg_names
Check if all argnames are being used, by default values, or directly/indirectly. :param List[str] argnames: List of argument names passed to
src/_pytest/python.py:1285
↓ 1 callersMethod_validate_plugins
(self)
src/_pytest/config/__init__.py:1251
↓ 1 callersFunction_validate_usepdb_cls
Validate syntax of --pdbcls option.
src/_pytest/debugging.py:32
↓ 1 callersMethod_warn_about_missing_assertion
(self, mode: str)
src/_pytest/config/__init__.py:1513
↓ 1 callersMethod_warn_about_skipped_plugins
(self)
src/_pytest/config/__init__.py:1534
↓ 1 callersMethod_warn_already_imported
(self, name: str)
src/_pytest/assertion/rewrite.py:264
↓ 1 callersMethod_warn_or_fail_if_strict
(self, message: str)
src/_pytest/config/__init__.py:1283
↓ 1 callersFunction_wrapcall
(*args, **kargs)
testing/test_argcomplete.py:28
↓ 1 callersFunction_write_and_reset
()
src/_pytest/assertion/rewrite.py:567
↓ 1 callersMethod_write_content
(self, report: TestReport, content: str, jheader: str)
src/_pytest/junitxml.py:188
↓ 1 callersMethod_write_entry_lines
Write the source code portions of a list of traceback entries with syntax highlighting. Usually entries are lines like these: "
src/_pytest/_code/code.py:1081
↓ 1 callersFunction_write_pyc_fp
( fp: IO[bytes], source_stat: os.stat_result, co: types.CodeType )
src/_pytest/assertion/rewrite.py:288
↓ 1 callersMethod_yield_comparisons
Yield all the pairs of numbers to be compared. This is used to implement the `__eq__` method.
src/_pytest/python_api.py:120
↓ 1 callersMethodactivate_fixture
If the current item is using ``capsys`` or ``capfd``, activate them so they take precedence over the global capture.
src/_pytest/capture.py:709
↓ 1 callersMethodaddError
( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType" )
src/_pytest/unittest.py:240
↓ 1 callersMethodadd_color_level
Add or update color opts for a log level. :param level: Log level to apply a style to, e.g. ``logging.INFO``. :param colo
src/_pytest/logging.py:73
↓ 1 callersMethodadd_global_property
(self, name: str, value: object)
src/_pytest/junitxml.py:684
↓ 1 callersFunctionadd_option_ini
(option, dest, default=None, type=None, **kwargs)
src/_pytest/logging.py:213
↓ 1 callersMethodadd_property
(self, name: str, value: object)
src/_pytest/junitxml.py:104
↓ 1 callersFunctionand_expr
(s: Scanner)
src/_pytest/mark/expression.py:153
↓ 1 callersFunctionannounce
Generates a new release announcement entry in the docs.
scripts/release.py:13
↓ 1 callersMethodappend_pass
(self, report: TestReport)
src/_pytest/junitxml.py:193
↓ 1 callersMethodapplymarker
Apply a marker to a single test function invocation. This method is useful if you don't want to have a keyword/marker on all function
src/_pytest/fixtures.py:557
↓ 1 callersFunctionassert_attr
(node, **kwargs)
testing/test_junitxml.py:65
↓ 1 callersFunctionassert_outcomes
Assert that the specified outcomes appear with the respective numbers (0 means it didn't occur) in the text output from a test run.
src/_pytest/pytester_assertions.py:38
↓ 1 callersMethodassert_result_warns
(result, msg)
testing/test_warnings.py:558
↓ 1 callersFunctionassertoutcome
( outcomes: Tuple[ Sequence[TestReport], Sequence[Union[CollectReport, TestReport]],
src/_pytest/pytester_assertions.py:16
↓ 1 callersFunctionasync_warn_and_skip
(nodeid: str)
src/_pytest/python.py:171
↓ 1 callersMethodat_level
Context manager that sets the level for capturing of logs. After the end of the 'with' statement the level is restored to its original
src/_pytest/logging.py:460
↓ 1 callersFunctionattempt_symlink_to
Try to make a symlink from "path" to "to_path", skipping in case this platform does not support it or we don't have sufficient privileges (common
testing/test_legacypath.py:46
↓ 1 callersFunctionb
(x)
testing/code/test_excinfo.py:1441
↓ 1 callersMethodbuiltin
Return the builtin called *name*.
src/_pytest/assertion/rewrite.py:790
↓ 1 callersFunctionc
()
testing/code/test_source.py:233
↓ 1 callersMethodcache_dir_from_config
Get the path to the cache directory for a Config. :meta private:
src/_pytest/cacheprovider.py:99
↓ 1 callersFunctioncall_and_report
( item: Item, when: "Literal['setup', 'call', 'teardown']", log: bool = True, **kwds )
src/_pytest/runner.py:218
↓ 1 callersFunctioncall_fixture_func
( fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs )
src/_pytest/fixtures.py:908
↓ 1 callersFunctioncall_runtest_hook
( item: Item, when: "Literal['setup', 'call', 'teardown']", **kwds )
src/_pytest/runner.py:246
↓ 1 callersFunctionchangelog
(version, write_out=False)
scripts/release.py:105
↓ 1 callersMethodchdir
Change the current working directory to the specified path. Path can be a string or a path object.
src/_pytest/monkeypatch.py:338
↓ 1 callersFunctioncheck_links
Runs sphinx-build to check links
scripts/release.py:81
↓ 1 callersFunctioncheck_testcase_implements_trial_reporter
(done: List[int] = [])
src/_pytest/unittest.py:393
↓ 1 callersFunctionchmod_rw
(p: str)
src/_pytest/pathlib.py:98
↓ 1 callersMethodclassnamefilter
(self, name: str)
src/_pytest/python.py:382
↓ 1 callersFunctioncleanup
(*args)
src/_pytest/unittest.py:139
↓ 1 callersFunctioncleanup_candidates
List candidates for numbered directories to be removed - follows py.path.
src/_pytest/pathlib.py:326
↓ 1 callersFunctioncleanup_numbered_dir
Cleanup for lock driven numbered directories.
src/_pytest/pathlib.py:338
↓ 1 callersMethodclear
Clear the list of recorded warnings.
src/_pytest/recwarn.py:196
↓ 1 callersMethodclear_cache
Clear the sub-directories used to hold cached directories and values. :meta private:
src/_pytest/cacheprovider.py:87
↓ 1 callersMethodclose
(self)
src/_pytest/capture.py:209
↓ 1 callersMethodcombined_with
Return a new Mark which is a combination of this Mark and another Mark. Combines by appending args and merging kwargs. :para
src/_pytest/mark/structures.py:235
↓ 1 callersFunctionconfigure_logging
Configure Sphinx's WarningHandler to handle (expected) missing include.
doc/en/conf.py:401
↓ 1 callersFunctionconvert_rst_to_md
(text)
scripts/publish-gh-release-notes.py:60
↓ 1 callersFunctioncopytree
Recursively copy a source directory to target.
src/_pytest/pathlib.py:711
↓ 1 callersMethoddeactivate_fixture
Deactivate the ``capsys`` or ``capfd`` fixture of this item, if any.
src/_pytest/capture.py:715
↓ 1 callersFunctiondeselect_by_keyword
(items: "List[Item]", config: Config)
src/_pytest/mark/__init__.py:187
↓ 1 callersFunctiondeselect_by_mark
(items: "List[Item]", config: Config)
src/_pytest/mark/__init__.py:238
↓ 1 callersFunctiondeserialize_repr_crash
(repr_crash_dict: Optional[Dict[str, Any]])
src/_pytest/reports.py:560
↓ 1 callersFunctiondeserialize_repr_entry
(entry_data)
src/_pytest/reports.py:527
↓ 1 callersFunctiondeserialize_repr_traceback
(repr_traceback_dict)
src/_pytest/reports.py:554
↓ 1 callersMethodemit
Keep the log records in a list in addition to the log text.
src/_pytest/logging.py:335
↓ 1 callersMethodend
(x)
testing/test_session.py:28
↓ 1 callersFunctionescape_rst
Rudimentary attempt to escape special RST characters to appear as plain text.
scripts/update-plugin-list.py:38
← previousnext →701–800 of 4,602, ranked by callers