MCPcopy Create free account

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

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

Functioncache
Return a cache object that can persist state between testing sessions. cache.get(key, default) cache.set(key, value) Keys must be ``/``
src/_pytest/cacheprovider.py:510
Functioncacheshow
(config: Config, session: Session)
src/_pytest/cacheprovider.py:541
Functioncall_assertion_pass_hook
(lineno: int, orig: str, expl: str)
src/_pytest/assertion/__init__.py:160
Functioncallbinrepr
Call the pytest_assertrepr_compare hook and prepare the result. This uses the first result from the hook and then ensures the followi
src/_pytest/assertion/__init__.py:126
Functioncapfd
Enable text capturing of writes to file descriptors ``1`` and ``2``. The captured output is made available via ``capfd.readouterr()`` method
src/_pytest/capture.py:912
Functioncapfdbinary
Enable bytes capturing of writes to file descriptors ``1`` and ``2``. The captured output is made available via ``capfd.readouterr()`` method
src/_pytest/capture.py:929
Functioncaplog
Access and control log capturing. Captured logs are available through the following properties/methods:: * caplog.messages -> list of
src/_pytest/logging.py:483
Methodcaplog
Return captured log lines, if log capturing is enabled. .. versionadded:: 3.5
src/_pytest/reports.py:117
Methodcapstderr
Return captured text from stderr, if capturing is enabled. .. versionadded:: 3.0
src/_pytest/reports.py:137
Methodcapstdout
Return captured text from stdout, if capturing is enabled. .. versionadded:: 3.0
src/_pytest/reports.py:127
Functioncapsys
Enable text capturing of writes to ``sys.stdout`` and ``sys.stderr``. The captured output is made available via ``capsys.readouterr()`` method
src/_pytest/capture.py:878
Functioncapsysbinary
Enable bytes capturing of writes to ``sys.stdout`` and ``sys.stderr``. The captured output is made available via ``capsysbinary.readouterr()``
src/_pytest/capture.py:895
Methodcapwarn
(self, pytester: Pytester)
testing/test_warnings.py:658
Methodchdir
See :meth:`Pytester.chdir`.
src/_pytest/legacypath.py:87
Functioncheck
(arg1, arg2, i)
testing/python/fixtures.py:80
Functioncheck
(wallet)
testing/plugins_integration/bdd_wallet.py:38
Functioncheck_fixture_ids_callable
()
testing/typing_checks.py:17
Methodcheck_longrepr
Check the attributes of the given longrepr object according to the test file. We can get away with testing both CollectReport and TestRep
testing/test_reports.py:311
Functioncheck_mark_xfail_raises
()
testing/typing_checks.py:11
Functioncheck_parametrize_ids_callable
(func)
testing/typing_checks.py:23
Functionchecked_order
()
testing/example_scripts/issue_519.py:17
Methodchildren
(self)
testing/test_junitxml.py:92
Functioncleanup_on_exit
(lock_path: Path = lock_path, original_pid: int = pid)
src/_pytest/pathlib.py:251
Methodclear
Reset the list of log records and the captured log text.
src/_pytest/logging.py:437
Methodcls
Python class object this node was collected from (can be None).
src/_pytest/python.py:276
Methodcls
Class (can be None) where the test function was collected.
src/_pytest/fixtures.py:504
Methodcode
(self)
src/_pytest/_code/code.py:151
Methodcollapsed_location_report
(reports: List[WarningReport])
src/_pytest/terminal.py:911
Methodcollect
(self)
src/_pytest/doctest.py:417
Methodcollect
(self)
src/_pytest/doctest.py:495
Methodcollect
(self)
src/_pytest/python.py:412
Methodcollect
(self)
src/_pytest/python.py:512
Methodcollect
(self)
src/_pytest/python.py:728
Methodcollect
Return a list of children (items and collectors) for this collection node.
src/_pytest/nodes.py:524
Methodcollect
(self)
src/_pytest/main.py:669
Methodcollect
(self)
src/_pytest/unittest.py:65
Methodcollect
(self)
doc/en/example/nonpython/conftest.py:11
Methodcollect
(self)
testing/example_scripts/issue88_initial_file_multinodes/conftest.py:5
Methodcollect_by_name
See :meth:`Pytester.collect_by_name`.
src/_pytest/legacypath.py:207
Functioncolor_mapping
Returns a utility class which can replace keys in strings in the form "{NAME}" by their equivalent ASCII codes in the terminal. Used by tests
testing/conftest.py:140
Methodconfig
The pytest config object associated with this request.
src/_pytest/fixtures.py:490
Functionconsole_main
The CLI entry point of pytest. This function is not meant for programmable use; use `main()` instead.
src/_pytest/config/__init__.py:181
Methodcontest_with_teardown_fixture
(self, pytester: Pytester)
testing/test_terminal.py:2132
Methodcopy_example
See :meth:`Pytester.copy_example`.
src/_pytest/legacypath.py:143
Methodcount_towards_summary
**Experimental** Whether this report should be counted towards the totals shown at the end of the test session: "1 passed, 1 failure, etc".
src/_pytest/reports.py:167
Methodcreate_module
( self, spec: importlib.machinery.ModuleSpec )
src/_pytest/assertion/rewrite.py:126
Functioncustom_debugger_hook
()
testing/test_debugging.py:61
Functioncustom_pdb_calls
()
testing/test_debugging.py:40
Functiond
(c, b, order)
doc/en/example/fixtures/test_fixtures_order_dependencies.py:25
Functiond
(b, order)
doc/en/example/fixtures/test_fixtures_order_autouse.py:25
Functiondeco_fixture
()
testing/code/test_source.py:482
Functiondeco_mark
()
testing/code/test_source.py:474
Functiondecorate
(func: _F)
src/_pytest/outcomes.py:104
Methoddefaultget
(option)
testing/test_parseopt.py:183
Methoddep
(self, i: int, j: Optional[int] = None)
testing/test_recwarn.py:91
Methoddep_explicit
(self, i: int)
testing/test_recwarn.py:96
Functiondeprecated_call
( *, match: Optional[Union[str, Pattern[str]]] = ... )
src/_pytest/recwarn.py:42
Functiondirectory_arg
Argparse type validator for directory arguments. :path: Path of directory. :optname: Name of the option.
src/_pytest/config/__init__.py:214
Methoddisabled
Temporarily disable capturing while inside the ``with`` block.
src/_pytest/capture.py:867
Functiondistributions
()
testing/test_config.py:986
Functiondo_assert
(lhs, rhs, expected_message, verbosity_level=0)
testing/python/approx.py:59
Methoddo_continue
(self, arg)
src/_pytest/debugging.py:166
Methoddo_debug
(self, arg)
src/_pytest/debugging.py:160
Methoddo_quit
Raise Exit outcome when quit command is used in pdb. This is a bit of a hack - it would be better if BdbQuit could be
src/_pytest/debugging.py:195
Methoddo_stuff
()
testing/code/test_excinfo.py:239
Functiondoctest_namespace
Fixture that returns a :py:class:`dict` that will be injected into the namespace of doctests.
src/_pytest/doctest.py:731
Methoddone
(self)
src/_pytest/capture.py:282
Functiondummy_yaml_custom_test
Writes a conftest file that collects and executes a dummy yaml test. Taken from the docs, but stripped down to the bare minimum, useful for t
testing/conftest.py:107
Functiondynamic
()
testing/example_scripts/fixtures/test_getfixturevalue_dynamic.py:5
Functione
(d, b, order)
doc/en/example/fixtures/test_fixtures_order_dependencies.py:30
Functione
(d, order)
doc/en/example/fixtures/test_fixtures_order_autouse.py:30
Methodemit
(self, record: logging.LogRecord)
src/_pytest/logging.py:796
Functionerror_pytester
(pytester: Pytester)
testing/test_stepwise.py:58
Methodeval
Evaluate 'code' in the frame. 'vars' are optional additional local variables. Returns the result of the evaluation.
src/_pytest/_code/code.py:161
Functionexcstore
( self, exc_value=None, exc_type=None, exc_tb=None, captureVars=None )
src/_pytest/unittest.py:370
Functionf
(e, order)
doc/en/example/fixtures/test_fixtures_order_dependencies.py:35
Functionf
()
testing/python/fixtures.py:20
Functionf
()
testing/code/test_code.py:85
Functionf
()
testing/code/test_source.py:59
Methodf
(cur: TracebackType)
src/_pytest/_code/code.py:335
Methodf
()
doc/en/example/assertion/failure_demo.py:24
Methodf
()
doc/en/example/assertion/failure_demo.py:207
Methodf
(self)
testing/test_nose.py:37
Methodf
()
testing/test_recwarn.py:141
Methodf
()
testing/test_recwarn.py:397
Methodf
()
testing/test_assertrewrite.py:243
Methodf
(item)
testing/test_runner.py:416
Methodf
(x)
testing/python/integration.py:112
Methodf
(self, arg1, arg2="hello")
testing/python/fixtures.py:45
Methodf
()
testing/code/test_excinfo.py:468
Methodf1
()
testing/test_assertrewrite.py:186
Methodf10
()
testing/test_assertrewrite.py:430
Methodf11
()
testing/test_assertrewrite.py:437
Methodf2
()
testing/test_assertrewrite.py:191
Methodf3
()
testing/test_assertrewrite.py:197
Methodf4
()
testing/test_assertrewrite.py:202
Methodf5
()
testing/test_assertrewrite.py:216
Methodf6
()
testing/test_assertrewrite.py:400
Methodf7
()
testing/test_assertrewrite.py:409
Methodf8
()
testing/test_assertrewrite.py:418
← previousnext →1,401–1,500 of 4,602, ranked by callers