Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ functions
Functions
4,602 in github.com/pytest-dev/pytest
⨍
Functions
4,602
◇
Types & classes
572
↳
Endpoints
16
Function
cache
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
Function
cacheshow
(config: Config, session: Session)
src/_pytest/cacheprovider.py:541
Function
call_assertion_pass_hook
(lineno: int, orig: str, expl: str)
src/_pytest/assertion/__init__.py:160
Function
callbinrepr
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
Function
capfd
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
Function
capfdbinary
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
Function
caplog
Access and control log capturing. Captured logs are available through the following properties/methods:: * caplog.messages -> list of
src/_pytest/logging.py:483
Method
caplog
Return captured log lines, if log capturing is enabled. .. versionadded:: 3.5
src/_pytest/reports.py:117
Method
capstderr
Return captured text from stderr, if capturing is enabled. .. versionadded:: 3.0
src/_pytest/reports.py:137
Method
capstdout
Return captured text from stdout, if capturing is enabled. .. versionadded:: 3.0
src/_pytest/reports.py:127
Function
capsys
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
Function
capsysbinary
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
Method
capwarn
(self, pytester: Pytester)
testing/test_warnings.py:658
Method
chdir
See :meth:`Pytester.chdir`.
src/_pytest/legacypath.py:87
Function
check
(arg1, arg2, i)
testing/python/fixtures.py:80
Function
check
(wallet)
testing/plugins_integration/bdd_wallet.py:38
Function
check_fixture_ids_callable
()
testing/typing_checks.py:17
Method
check_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
Function
check_mark_xfail_raises
()
testing/typing_checks.py:11
Function
check_parametrize_ids_callable
(func)
testing/typing_checks.py:23
Function
checked_order
()
testing/example_scripts/issue_519.py:17
Method
children
(self)
testing/test_junitxml.py:92
Function
cleanup_on_exit
(lock_path: Path = lock_path, original_pid: int = pid)
src/_pytest/pathlib.py:251
Method
clear
Reset the list of log records and the captured log text.
src/_pytest/logging.py:437
Method
cls
Python class object this node was collected from (can be None).
src/_pytest/python.py:276
Method
cls
Class (can be None) where the test function was collected.
src/_pytest/fixtures.py:504
Method
code
(self)
src/_pytest/_code/code.py:151
Method
collapsed_location_report
(reports: List[WarningReport])
src/_pytest/terminal.py:911
Method
collect
(self)
src/_pytest/doctest.py:417
Method
collect
(self)
src/_pytest/doctest.py:495
Method
collect
(self)
src/_pytest/python.py:412
Method
collect
(self)
src/_pytest/python.py:512
Method
collect
(self)
src/_pytest/python.py:728
Method
collect
Return a list of children (items and collectors) for this collection node.
src/_pytest/nodes.py:524
Method
collect
(self)
src/_pytest/main.py:669
Method
collect
(self)
src/_pytest/unittest.py:65
Method
collect
(self)
doc/en/example/nonpython/conftest.py:11
Method
collect
(self)
testing/example_scripts/issue88_initial_file_multinodes/conftest.py:5
Method
collect_by_name
See :meth:`Pytester.collect_by_name`.
src/_pytest/legacypath.py:207
Function
color_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
Method
config
The pytest config object associated with this request.
src/_pytest/fixtures.py:490
Function
console_main
The CLI entry point of pytest. This function is not meant for programmable use; use `main()` instead.
src/_pytest/config/__init__.py:181
Method
contest_with_teardown_fixture
(self, pytester: Pytester)
testing/test_terminal.py:2132
Method
copy_example
See :meth:`Pytester.copy_example`.
src/_pytest/legacypath.py:143
Method
count_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
Method
create_module
( self, spec: importlib.machinery.ModuleSpec )
src/_pytest/assertion/rewrite.py:126
Function
custom_debugger_hook
()
testing/test_debugging.py:61
Function
custom_pdb_calls
()
testing/test_debugging.py:40
Function
d
(c, b, order)
doc/en/example/fixtures/test_fixtures_order_dependencies.py:25
Function
d
(b, order)
doc/en/example/fixtures/test_fixtures_order_autouse.py:25
Function
deco_fixture
()
testing/code/test_source.py:482
Function
deco_mark
()
testing/code/test_source.py:474
Function
decorate
(func: _F)
src/_pytest/outcomes.py:104
Method
defaultget
(option)
testing/test_parseopt.py:183
Method
dep
(self, i: int, j: Optional[int] = None)
testing/test_recwarn.py:91
Method
dep_explicit
(self, i: int)
testing/test_recwarn.py:96
Function
deprecated_call
( *, match: Optional[Union[str, Pattern[str]]] = ... )
src/_pytest/recwarn.py:42
Function
directory_arg
Argparse type validator for directory arguments. :path: Path of directory. :optname: Name of the option.
src/_pytest/config/__init__.py:214
Method
disabled
Temporarily disable capturing while inside the ``with`` block.
src/_pytest/capture.py:867
Function
distributions
()
testing/test_config.py:986
Function
do_assert
(lhs, rhs, expected_message, verbosity_level=0)
testing/python/approx.py:59
Method
do_continue
(self, arg)
src/_pytest/debugging.py:166
Method
do_debug
(self, arg)
src/_pytest/debugging.py:160
Method
do_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
Method
do_stuff
()
testing/code/test_excinfo.py:239
Function
doctest_namespace
Fixture that returns a :py:class:`dict` that will be injected into the namespace of doctests.
src/_pytest/doctest.py:731
Method
done
(self)
src/_pytest/capture.py:282
Function
dummy_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
Function
dynamic
()
testing/example_scripts/fixtures/test_getfixturevalue_dynamic.py:5
Function
e
(d, b, order)
doc/en/example/fixtures/test_fixtures_order_dependencies.py:30
Function
e
(d, order)
doc/en/example/fixtures/test_fixtures_order_autouse.py:30
Method
emit
(self, record: logging.LogRecord)
src/_pytest/logging.py:796
Function
error_pytester
(pytester: Pytester)
testing/test_stepwise.py:58
Method
eval
Evaluate 'code' in the frame. 'vars' are optional additional local variables. Returns the result of the evaluation.
src/_pytest/_code/code.py:161
Function
excstore
( self, exc_value=None, exc_type=None, exc_tb=None, captureVars=None )
src/_pytest/unittest.py:370
Function
f
(e, order)
doc/en/example/fixtures/test_fixtures_order_dependencies.py:35
Function
f
()
testing/python/fixtures.py:20
Function
f
()
testing/code/test_code.py:85
Function
f
()
testing/code/test_source.py:59
Method
f
(cur: TracebackType)
src/_pytest/_code/code.py:335
Method
f
()
doc/en/example/assertion/failure_demo.py:24
Method
f
()
doc/en/example/assertion/failure_demo.py:207
Method
f
(self)
testing/test_nose.py:37
Method
f
()
testing/test_recwarn.py:141
Method
f
()
testing/test_recwarn.py:397
Method
f
()
testing/test_assertrewrite.py:243
Method
f
(item)
testing/test_runner.py:416
Method
f
(x)
testing/python/integration.py:112
Method
f
(self, arg1, arg2="hello")
testing/python/fixtures.py:45
Method
f
()
testing/code/test_excinfo.py:468
Method
f1
()
testing/test_assertrewrite.py:186
Method
f10
()
testing/test_assertrewrite.py:430
Method
f11
()
testing/test_assertrewrite.py:437
Method
f2
()
testing/test_assertrewrite.py:191
Method
f3
()
testing/test_assertrewrite.py:197
Method
f4
()
testing/test_assertrewrite.py:202
Method
f5
()
testing/test_assertrewrite.py:216
Method
f6
()
testing/test_assertrewrite.py:400
Method
f7
()
testing/test_assertrewrite.py:409
Method
f8
()
testing/test_assertrewrite.py:418
← previous
next →
1,401–1,500 of 4,602, ranked by callers