MCPcopy Create free account

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

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

Method__str__
(self)
src/_pytest/config/__init__.py:116
Method__str__
(self)
src/_pytest/config/argparsing.py:211
Method__str__
(self)
testing/io/test_saferepr.py:83
Function_args_converter
(args: Iterable[str])
src/_pytest/config/__init__.py:857
Function_call_assertion_pass
(lineno: int, orig: str, expl: str)
src/_pytest/assertion/rewrite.py:510
Function_call_reprcompare
( ops: Sequence[str], results: Sequence[bool], expls: Sequence[str], each_obj: Sequence[object
src/_pytest/assertion/rewrite.py:490
Function_check_if_assertion_pass_impl
Check if any plugins implement the pytest_assertion_pass hook in order not to generate explanation unnecessarily (might be expensive).
src/_pytest/assertion/rewrite.py:515
Method_check_type
(self)
src/_pytest/python_api.py:302
Method_check_type
(self)
src/_pytest/python_api.py:374
Function_config_for_test
()
src/_pytest/pytester.py:504
Function_ensure_immutable_ids
( ids: Optional[ Union[ Iterable[Union[None, str, float, int, bool]], Call
src/_pytest/fixtures.py:1132
Function_fillfuncargs
Fill missing fixtures for a test function, old public API (deprecated).
src/_pytest/fixtures.py:355
Method_find
( self, tests, obj, name, module, source_lines, globs, seen )
src/_pytest/doctest.py:525
Method_find_lineno
Doctest code does not take into account `@property`, this is a hackish way to fix it. https://bugs.python.org/issue17446
src/_pytest/doctest.py:505
Method_format
( self, object: object, stream: IO[str], indent: int, allowance: int,
src/_pytest/_io/saferepr.py:113
Method_format_action_invocation
(self, action: argparse.Action)
src/_pytest/config/argparsing.py:487
Function_format_assertmsg
r"""Format the custom assertion message given. For strings this simply replaces newlines with '\n~' so that util.format_explanation() will pr
src/_pytest/assertion/rewrite.py:453
Function_format_boolop
(explanations: Iterable[str], is_or: bool)
src/_pytest/assertion/rewrite.py:485
Method_get_b
(self)
doc/en/example/assertion/failure_demo.py:140
Function_get_directory
Get the directory of a path - itself if already a directory.
src/_pytest/config/__init__.py:334
Method_get_verbose_word
(self, *args)
testing/test_terminal.py:2269
Method_getobj
(self)
src/_pytest/python.py:509
Method_getobj
(self)
src/_pytest/python.py:1702
Method_hook
(self, unraisable: "sys.UnraisableHookArgs")
src/_pytest/unraisableexception.py:40
Method_hook
(self, args: "threading.ExceptHookArgs")
src/_pytest/threadexception.py:40
Method_is_last_item
(self)
src/_pytest/terminal.py:571
Method_log_text
(self)
src/_pytest/pytester.py:1593
Function_main
Default command line protocol for initialization, session, running tests and reporting.
src/_pytest/main.py:318
Function_mock_aware_unwrap
( func: Callable[..., Any], *, stop: Optional[Callable[[Any], Any]] = None )
src/_pytest/doctest.py:470
Function_modules
()
testing/test_meta.py:15
Function_non_numeric_type_error
(value, at: Optional[str])
src/_pytest/python_api.py:34
Function_params_converter
( params: Optional[Iterable[object]], )
src/_pytest/fixtures.py:1152
Method_parse_optional
( self, arg_string: str )
src/_pytest/config/argparsing.py:437
Method_prunetraceback
(self, excinfo: ExceptionInfo[BaseException])
src/_pytest/python.py:1723
Method_prunetraceback
(self, excinfo: ExceptionInfo[BaseException])
src/_pytest/nodes.py:551
Method_prunetraceback
( self, excinfo: _pytest._code.ExceptionInfo[BaseException] )
src/_pytest/unittest.py:322
Method_pyfuncitem
(compatonly) for code expecting pytest-2.2 style request objects.
src/_pytest/python.py:1712
Function_pytest
Return a helper which offers a gethookrecorder(hook) method which returns a HookRecorder instance which helps to make assertions about called
src/_pytest/pytester.py:193
Method_recurse
(self, direntry: "os.DirEntry[str]")
src/_pytest/python.py:692
Method_recurse
(self, direntry: "os.DirEntry[str]")
src/_pytest/main.py:555
Method_repr_compare
(self, other_side: "ndarray")
src/_pytest/python_api.py:151
Method_repr_compare
(self, other_side: Mapping[object, float])
src/_pytest/python_api.py:251
Method_repr_compare
(self, other_side: Sequence[float])
src/_pytest/python_api.py:321
Function_saferepr
r"""Get a safe repr of an object for assertion error messages. The assertion formatting (util.format_explanation()) requires newlines to be e
src/_pytest/assertion/rewrite.py:429
Method_schedule_finalizers
( self, fixturedef: "FixtureDef[object]", subrequest: "SubRequest" )
src/_pytest/fixtures.py:797
Function_should_repr_global_name
(obj: object)
src/_pytest/assertion/rewrite.py:475
Function_show_fixtures_per_test
(config: Config, session: Session)
src/_pytest/python.py:1478
Function_showfixtures_main
(config: Config, session: Session)
src/_pytest/python.py:1534
Method_split_lines
Wrap lines after splitting on original newlines. This allows to have explicit line breaks in the help text.
src/_pytest/config/argparsing.py:525
Function_sys_snapshot
()
src/_pytest/pytester.py:495
Function_teardown_yield_fixture
Execute the teardown of a fixture function by advancing the iterator after the yield and ensure the iteration ends (if not it means there is m
src/_pytest/fixtures.py:928
Method_width_of_current_line
Return the width of the current line.
src/_pytest/terminal.py:621
Function_with_exception
(exception_type: _ET)
src/_pytest/outcomes.py:103
Method_write_source
(self, lines, indents=())
testing/conftest.py:84
Method_yield_comparisons
(self, actual)
src/_pytest/python_api.py:227
Method_yield_comparisons
(self, actual)
src/_pytest/python_api.py:298
Method_yield_comparisons
(self, actual)
src/_pytest/python_api.py:371
Functiona
(order)
doc/en/example/fixtures/test_fixtures_order_dependencies.py:10
Functiona
(order)
doc/en/example/fixtures/test_fixtures_order_autouse.py:10
Functiona
(request)
testing/example_scripts/fixtures/test_getfixturevalue_dynamic.py:10
MethodaddExpectedFailure
( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason:
src/_pytest/unittest.py:261
MethodaddFailure
( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType" )
src/_pytest/unittest.py:250
MethodaddSkip
(self, testcase: "unittest.TestCase", reason: str)
src/_pytest/unittest.py:255
MethodaddSuccess
(self, testcase: "unittest.TestCase")
src/_pytest/unittest.py:286
MethodaddUnexpectedSuccess
( self, testcase: "unittest.TestCase", reason: Optional["twisted.trial.unittest.Todo"]
src/_pytest/unittest.py:272
Functionadd_attr_noop
(name: str, value: object)
src/_pytest/junitxml.py:320
Methodadd_attribute
(self, name: str, value: object)
src/_pytest/junitxml.py:107
Functionadd_funcarg_pseudo_fixture_def
( collector: nodes.Collector, metafunc: "Metafunc", fixturemanager: "FixtureManager" )
src/_pytest/fixtures.py:155
Methodaddfinalizer
Attach a finalizer to the given node. The node must be currently active in the stack.
src/_pytest/runner.py:503
Methodaddfinalizer
Add finalizer/teardown function to be called after the last test within the requesting test context finished execution.
src/_pytest/fixtures.py:547
Methodaddfinalizer
(self, finalizer: Callable[[], object])
src/_pytest/fixtures.py:1014
Methodaddition
(x, y)
testing/example_scripts/unittest/test_unittest_asyncio.py:13
Methodafter
(outcome, hook_name: str, hook_impls, kwargs)
src/_pytest/pytester.py:266
Functionappend_property
(name: str, value: object)
src/_pytest/junitxml.py:298
Functionarg1
(request)
testing/example_scripts/fixtures/fill_fixtures/test_conftest_funcargs_only_available_in_subdir/sub1/conftest.py:5
Functionarg2
(request)
testing/example_scripts/fixtures/fill_fixtures/test_conftest_funcargs_only_available_in_subdir/sub2/conftest.py:5
Methodargs
Alias for mark.args.
src/_pytest/mark/structures.py:318
Methodargs
(self)
testing/test_terminal.py:46
Functionassertrepr_compare
Return specialised explanations for some operators/operands.
src/_pytest/assertion/util.py:138
MethodasyncTearDown
(self)
testing/example_scripts/unittest/test_unittest_asyncio.py:9
Methodatomic_write_failed
(fn, mode="r", overwrite=False)
testing/test_assertrewrite.py:1056
Functionb
(a, order)
doc/en/example/fixtures/test_fixtures_order_dependencies.py:15
Functionb
(a, order)
doc/en/example/fixtures/test_fixtures_order_autouse.py:15
Functionb
(a)
testing/example_scripts/fixtures/test_getfixturevalue_dynamic.py:15
Methodbar
()
testing/code/test_excinfo.py:1066
Methodbasedir
( self, request, tmp_path_factory: TempPathFactory )
testing/test_conftest.py:44
Methodbefore
(hook_name: str, hook_impls, kwargs)
src/_pytest/pytester.py:263
Functionbreak_getuser
(monkeypatch)
testing/test_tmpdir.py:187
Functionbroken_pytester
(pytester: Pytester)
testing/test_stepwise.py:73
Methodbuffer
(self)
src/_pytest/capture.py:213
Functionbuy_apples
(wallet)
testing/plugins_integration/bdd_wallet.py:28
Functionbuy_bananas
(wallet)
testing/plugins_integration/bdd_wallet.py:33
Functionc
(a, b, order)
doc/en/example/fixtures/test_fixtures_order_dependencies.py:20
Functionc
(b, order)
doc/en/example/fixtures/test_fixtures_order_autouse.py:20
Functionc1
(order)
doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py:10
Functionc1
(order)
doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py:10
Functionc2
(order)
doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py:15
Functionc2
(order)
doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py:15
Functionc3
(order, c1)
doc/en/example/fixtures/test_fixtures_order_autouse_multiple_scopes.py:20
Methodc3
(self, order, c2)
doc/en/example/fixtures/test_fixtures_order_autouse_temp_effects.py:21
← previousnext →1,301–1,400 of 4,602, ranked by callers