Navigation
index
modules
|
pytest-7.0
»
Index
Index
_
|
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
J
|
K
|
L
|
M
|
N
|
O
|
P
|
R
|
S
|
T
|
U
|
V
|
W
|
X
_
__contains__() (Stash method)
__delitem__() (Stash method)
__getitem__() (Stash method)
__len__() (Stash method)
__setitem__() (Stash method)
__str__() (LineMatcher method)
A
add_cleanup() (Config method)
add_hookcall_monitoring() (PytestPluginManager method)
add_hookspecs() (PytestPluginManager method)
add_marker() (Node method)
add_report_section() (Item method)
addfinalizer() (FixtureRequest method)
(Node method)
addini() (Parser method)
addinivalue_line() (Config method)
addoption() (OptionGroup method)
(Parser method)
addopts
configuration value
applymarker() (FixtureRequest method)
approx() (in module pytest)
args (Config.InvocationParams attribute)
(Mark attribute)
args() (MarkDecorator property)
assert_outcomes() (RunResult method)
at_level() (LogCaptureFixture method)
B
built-in function
pytest.mark.filterwarnings()
pytest.mark.skip()
pytest.mark.skipif()
pytest.mark.usefixtures()
pytest.mark.xfail()
C
cache
fixture
Cache (class in pytest)
cache_dir
configuration value
CallInfo (class in pytest)
capfd
fixture
capfd() (in module _pytest.capture)
capfdbinary
fixture
capfdbinary() (in module _pytest.capture)
caplog
fixture
caplog() (CollectReport property)
(in module _pytest.logging)
(TestReport property)
capstderr() (CollectReport property)
(TestReport property)
capstdout() (CollectReport property)
(TestReport property)
capsys
fixture
capsys() (in module _pytest.capture)
capsysbinary
fixture
capsysbinary() (in module _pytest.capture)
CaptureFixture (class in pytest)
chdir() (MonkeyPatch method)
(Pytester method)
(Testdir method)
check_pending() (PytestPluginManager method)
Class (class in pytest)
clear() (LogCaptureFixture method)
(WarningsRecorder method)
cls (Metafunc attribute)
cls() (FixtureRequest property)
collect() (Class method)
(Collector method)
(Module method)
(Session method)
collect_by_name() (Pytester method)
(Testdir method)
collect_ignore
global variable interpreted by pytest
collect_ignore_glob
global variable interpreted by pytest
Collector (class in pytest)
Collector.CollectError
CollectReport (class in pytest)
combined_with() (Mark method)
Config (class in pytest)
config (Metafunc attribute)
(Node attribute)
config() (FixtureRequest property)
Config.InvocationParams (class in pytest)
configuration value
addopts
cache_dir
console_output_style
doctest_encoding
doctest_optionflags
empty_parameter_set_mark
faulthandler_timeout
filterwarnings
junit_duration_report
junit_family
junit_log_passing_tests
junit_logging
junit_suite_name
log_auto_indent
log_cli
log_cli_date_format
log_cli_format
log_cli_level
log_date_format
log_file
log_file_date_format
log_file_format
log_file_level
log_format
log_level
markers
minversion
norecursedirs
python_classes
python_files
python_functions
pythonpath
required_plugins
testpaths
usefixtures
xfail_strict
console_output_style
configuration value
context() (MonkeyPatch class method)
copy_example() (Pytester method)
(Testdir method)
count_towards_summary() (CollectReport property)
(TestReport property)
D
definition (Metafunc attribute)
delattr() (MonkeyPatch method)
delenv() (MonkeyPatch method)
delitem() (MonkeyPatch method)
deprecated_call() (in module pytest)
dir (Config.InvocationParams attribute)
disabled() (CaptureFixture method)
doctest_encoding
configuration value
doctest_namespace
fixture
doctest_namespace() (in module _pytest.doctest)
doctest_optionflags
configuration value
duration (CallInfo attribute)
(RunResult attribute)
(TestReport attribute)
E
empty_parameter_set_mark
configuration value
enable_tracing() (PytestPluginManager method)
environment variable
FORCE_COLOR
,
[1]
NO_COLOR
,
[1]
PY_COLORS
PYTEST_ADDOPTS
PYTEST_CURRENT_TEST
,
[1]
,
[2]
PYTEST_DEBUG
PYTEST_DISABLE_PLUGIN_AUTOLOAD
PYTEST_PLUGINS
,
[1]
PYTEST_THEME
,
[1]
,
[2]
,
[3]
PYTEST_THEME_MODE
,
[1]
,
[2]
python:PYTHONWARNINGS
PYTHONPATH
errisinstance() (ExceptionInfo method)
errlines (RunResult attribute)
ExceptionInfo (class in pytest)
excinfo (CallInfo attribute)
exconly() (ExceptionInfo method)
exit() (in module pytest)
ExitCode (class in pytest)
extra_keyword_matches (Node attribute)
F
fail() (in module pytest)
failed() (CollectReport property)
(TestReport property)
faulthandler_timeout
configuration value
File (class in pytest)
fill_unfilled() (ExceptionInfo method)
filterwarnings
configuration value
finalize() (Testdir method)
fixture
cache
capfd
capfdbinary
caplog
capsys
capsysbinary
doctest_namespace
monkeypatch
pytestconfig
pytester
record_property
record_testsuite_property
recwarn
request
testdir
tmp_path
tmp_path_factory
tmpdir
tmpdir_factory
fixture() (in module pytest)
FixtureDef (class in _pytest.fixtures)
fixturename (FixtureRequest attribute)
fixturenames (Metafunc attribute)
fixturenames() (FixtureRequest property)
FixtureRequest (class in pytest)
fnmatch_lines() (LineMatcher method)
fnmatch_lines_random() (LineMatcher method)
for_later() (ExceptionInfo class method)
FORCE_COLOR
freeze_includes() (in module pytest)
from_call() (CallInfo class method)
from_current() (ExceptionInfo class method)
from_exc_info() (ExceptionInfo class method)
from_item_and_call() (TestReport class method)
from_parent() (Class class method)
(FSCollector class method)
(Function class method)
(Node class method)
fromdictargs() (Config class method)
FSCollector (class in _pytest.nodes)
fspath (Node attribute)
fspath() (CollectReport property)
(TestReport property)
Function (class in pytest)
function (Metafunc attribute)
function() (FixtureRequest property)
(Function property)
FunctionDefinition (class in _pytest.python)
G
genitems() (Pytester method)
(Testdir method)
get() (Cache method)
(Stash method)
get_canonical_name() (PytestPluginManager method)
get_closest_marker() (Node method)
get_hookcallers() (PytestPluginManager method)
get_lines_after() (LineMatcher method)
get_name() (PytestPluginManager method)
get_plugin() (PytestPluginManager method)
get_plugins() (PytestPluginManager method)
get_records() (LogCaptureFixture method)
getbasetemp() (TempdirFactory method)
(TempPathFactory method)
getcalls() (HookRecorder method)
getfixturevalue() (FixtureRequest method)
getgroup() (Parser method)
getini() (Config method)
getinicfg() (Pytester method)
(Testdir method)
getitem() (Pytester method)
(Testdir method)
getitems() (Pytester method)
(Testdir method)
getmodulecol() (Pytester method)
(Testdir method)
getnode() (Pytester method)
(Testdir method)
getoption() (Config method)
getparent() (Node method)
getpathnode() (Pytester method)
(Testdir method)
getplugin() (PytestPluginManager method)
getrepr() (ExceptionInfo method)
getvalue() (Config method)
getvalueorskip() (Config method)
global variable interpreted by pytest
collect_ignore
collect_ignore_glob
pytest_plugins
pytestmark
H
handler() (LogCaptureFixture property)
has_plugin() (PytestPluginManager method)
hasplugin() (PytestPluginManager method)
head_line() (CollectReport property)
(TestReport property)
hook
pytest_addhooks
pytest_addoption
pytest_assertion_pass
pytest_assertrepr_compare
pytest_cmdline_main
pytest_cmdline_parse
pytest_cmdline_preparse
pytest_collect_file
pytest_collection
pytest_collection_modifyitems
pytest_collectreport
pytest_collectstart
pytest_configure
pytest_deselected
pytest_enter_pdb
pytest_exception_interact
pytest_fixture_post_finalizer
pytest_fixture_setup
pytest_generate_tests
pytest_ignore_collect
pytest_internalerror
pytest_itemcollected
pytest_keyboard_interrupt
pytest_leave_pdb
pytest_load_initial_conftests
pytest_make_collect_report
pytest_make_parametrize_id
pytest_markeval_namespace
pytest_plugin_registered
pytest_pycollect_makeitem
pytest_pycollect_makemodule
pytest_pyfunc_call
pytest_report_collectionfinish
pytest_report_from_serializable
pytest_report_header
pytest_report_teststatus
pytest_report_to_serializable
pytest_runtest_call
pytest_runtest_logfinish
pytest_runtest_logreport
pytest_runtest_logstart
pytest_runtest_makereport
pytest_runtest_protocol
pytest_runtest_setup
pytest_runtest_teardown
pytest_runtestloop
pytest_sessionfinish
pytest_sessionstart
pytest_terminal_summary
pytest_unconfigure
pytest_warning_captured
pytest_warning_recorded
HookRecorder (class in pytest)
I
ihook() (Node property)
import_plugin() (PytestPluginManager method)
importorskip() (in module pytest)
inipath() (Config property)
inline_genitems() (Pytester method)
(Testdir method)
inline_run() (Pytester method)
(Testdir method)
inline_runsource() (Pytester method)
(Testdir method)
instance() (FixtureRequest property)
INTERNAL_ERROR (ExitCode attribute)
INTERRUPTED (ExitCode attribute)
invocation_params (Config attribute)
is_blocked() (PytestPluginManager method)
is_registered() (PytestPluginManager method)
issue_config_time_warning() (Config method)
Item (class in pytest)
iter_markers() (Node method)
iter_markers_with_node() (Node method)
J
junit_duration_report
configuration value
junit_family
configuration value
junit_log_passing_tests
configuration value
junit_logging
configuration value
junit_suite_name
configuration value
K
keywords (Node attribute)
(TestReport attribute)
keywords() (FixtureRequest property)
kwargs (Mark attribute)
kwargs() (MarkDecorator property)
L
LineMatcher (class in pytest)
list() (WarningsRecorder property)
list_name_plugin() (PytestPluginManager method)
list_plugin_distinfo() (PytestPluginManager method)
listchain() (Node method)
listextrakeywords() (Node method)
load_setuptools_entrypoints() (PytestPluginManager method)
location (TestReport attribute)
log_auto_indent
configuration value
log_cli
configuration value
log_cli_date_format
configuration value
log_cli_format
configuration value
log_cli_level
configuration value
log_date_format
configuration value
log_file
configuration value
log_file_date_format
configuration value
log_file_format
configuration value
log_file_level
configuration value
log_format
configuration value
log_level
configuration value
LogCaptureFixture (class in pytest)
longrepr (CollectReport attribute)
(TestReport attribute)
longreprtext() (CollectReport property)
(TestReport property)
M
main() (in module pytest)
make_hook_recorder() (Pytester method)
(Testdir method)
makeconftest() (Pytester method)
(Testdir method)
makefile() (Pytester method)
(Testdir method)
makeini() (Pytester method)
(Testdir method)
makepyfile() (Pytester method)
(Testdir method)
makepyprojecttoml() (Pytester method)
(Testdir method)
maketxtfile() (Pytester method)
(Testdir method)
Mark (class in pytest)
MarkDecorator (class in pytest)
markers
configuration value
MarkGenerator (class in pytest)
match() (ExceptionInfo method)
matchreport() (HookRecorder method)
messages() (LogCaptureFixture property)
Metafunc (class in pytest)
minversion
configuration value
mkdir() (Cache method)
(Pytester method)
(Testdir method)
mkpydir() (Pytester method)
(Testdir method)
mktemp() (TempdirFactory method)
(TempPathFactory method)
module
pytest
Module (class in pytest)
module (Metafunc attribute)
module() (FixtureRequest property)
monkeypatch
fixture
MonkeyPatch (class in pytest)
monkeypatch() (in module _pytest.monkeypatch)
N
name (Mark attribute)
(Node attribute)
name() (MarkDecorator property)
NO_COLOR
no_fnmatch_line() (LineMatcher method)
no_re_match_line() (LineMatcher method)
NO_TESTS_COLLECTED (ExitCode attribute)
Node (class in _pytest.nodes)
node() (FixtureRequest property)
nodeid (CollectReport attribute)
(TestReport attribute)
nodeid() (Node property)
norecursedirs
configuration value
O
OK (ExitCode attribute)
option (Config attribute)
OptionGroup (class in pytest)
originalname (Function attribute)
outcome (CollectReport attribute)
(TestReport attribute)
outlines (RunResult attribute)
own_markers (Node attribute)
P
param() (in module pytest)
parametrize() (Metafunc method)
parent (Node attribute)
parse_hookimpl_opts() (PytestPluginManager method)
parse_hookspec_opts() (PytestPluginManager method)
parse_known_and_unknown_args() (Parser method)
parse_known_args() (Parser method)
parse_summary_nouns() (RunResult class method)
parseconfig() (Pytester method)
(Testdir method)
parseconfigure() (Pytester method)
(Testdir method)
parseoutcomes() (RunResult method)
Parser (class in pytest)
passed() (CollectReport property)
(TestReport property)
path (Node attribute)
path() (Pytester property)
perform_collect() (Session method)
pluginmanager (Config attribute)
plugins (Config.InvocationParams attribute)
pop() (WarningsRecorder method)
popen() (Pytester method)
(Testdir method)
pytest
module
pytest.mark.filterwarnings()
built-in function
pytest.mark.skip()
built-in function
pytest.mark.skipif()
built-in function
pytest.mark.usefixtures()
built-in function
pytest.mark.xfail()
built-in function
pytest_addhooks
hook
pytest_addhooks() (in module _pytest.hookspec)
pytest_addoption
hook
pytest_addoption() (in module _pytest.hookspec)
pytest_assertion_pass
hook
pytest_assertion_pass() (in module _pytest.hookspec)
pytest_assertrepr_compare
hook
pytest_assertrepr_compare() (in module _pytest.hookspec)
pytest_cmdline_main
hook
pytest_cmdline_main() (in module _pytest.hookspec)
pytest_cmdline_parse
hook
pytest_cmdline_parse() (in module _pytest.hookspec)
pytest_cmdline_preparse
hook
pytest_cmdline_preparse() (in module _pytest.hookspec)
pytest_collect_file
hook
pytest_collect_file() (in module _pytest.hookspec)
pytest_collection
hook
pytest_collection() (in module _pytest.hookspec)
pytest_collection_finish() (in module _pytest.hookspec)
pytest_collection_modifyitems
hook
pytest_collection_modifyitems() (in module _pytest.hookspec)
pytest_collectreport
hook
pytest_collectreport() (in module _pytest.hookspec)
pytest_collectstart
hook
pytest_collectstart() (in module _pytest.hookspec)
pytest_configure
hook
pytest_configure() (in module _pytest.hookspec)
PYTEST_CURRENT_TEST
,
[1]
pytest_deselected
hook
pytest_deselected() (in module _pytest.hookspec)
pytest_enter_pdb
hook
pytest_enter_pdb() (in module _pytest.hookspec)
pytest_exception_interact
hook
pytest_exception_interact() (in module _pytest.hookspec)
pytest_fixture_post_finalizer
hook
pytest_fixture_post_finalizer() (in module _pytest.hookspec)
pytest_fixture_setup
hook
pytest_fixture_setup() (in module _pytest.hookspec)
pytest_generate_tests
hook
pytest_generate_tests() (in module _pytest.hookspec)
pytest_ignore_collect
hook
pytest_ignore_collect() (in module _pytest.hookspec)
pytest_internalerror
hook
pytest_internalerror() (in module _pytest.hookspec)
pytest_itemcollected
hook
pytest_itemcollected() (in module _pytest.hookspec)
pytest_keyboard_interrupt
hook
pytest_keyboard_interrupt() (in module _pytest.hookspec)
pytest_leave_pdb
hook
pytest_leave_pdb() (in module _pytest.hookspec)
pytest_load_initial_conftests
hook
pytest_load_initial_conftests() (in module _pytest.hookspec)
pytest_make_collect_report
hook
pytest_make_collect_report() (in module _pytest.hookspec)
pytest_make_parametrize_id
hook
pytest_make_parametrize_id() (in module _pytest.hookspec)
pytest_markeval_namespace
hook
pytest_markeval_namespace() (in module _pytest.hookspec)
pytest_plugin_registered
hook
pytest_plugin_registered() (in module _pytest.hookspec)
PYTEST_PLUGINS
pytest_plugins
global variable interpreted by pytest
pytest_pycollect_makeitem
hook
pytest_pycollect_makeitem() (in module _pytest.hookspec)
pytest_pycollect_makemodule
hook
pytest_pycollect_makemodule() (in module _pytest.hookspec)
pytest_pyfunc_call
hook
pytest_pyfunc_call() (in module _pytest.hookspec)
pytest_report_collectionfinish
hook
pytest_report_collectionfinish() (in module _pytest.hookspec)
pytest_report_from_serializable
hook
pytest_report_from_serializable() (in module _pytest.hookspec)
pytest_report_header
hook
pytest_report_header() (in module _pytest.hookspec)
pytest_report_teststatus
hook
pytest_report_teststatus() (in module _pytest.hookspec)
pytest_report_to_serializable
hook
pytest_report_to_serializable() (in module _pytest.hookspec)
pytest_runtest_call
hook
pytest_runtest_call() (in module _pytest.hookspec)
pytest_runtest_logfinish
hook
pytest_runtest_logfinish() (in module _pytest.hookspec)
pytest_runtest_logreport
hook
pytest_runtest_logreport() (in module _pytest.hookspec)
pytest_runtest_logstart
hook
pytest_runtest_logstart() (in module _pytest.hookspec)
pytest_runtest_makereport
hook
pytest_runtest_makereport() (in module _pytest.hookspec)
pytest_runtest_protocol
hook
pytest_runtest_protocol() (in module _pytest.hookspec)
pytest_runtest_setup
hook
pytest_runtest_setup() (in module _pytest.hookspec)
pytest_runtest_teardown
hook
pytest_runtest_teardown() (in module _pytest.hookspec)
pytest_runtestloop
hook
pytest_runtestloop() (in module _pytest.hookspec)
pytest_sessionfinish
hook
pytest_sessionfinish() (in module _pytest.hookspec)
pytest_sessionstart
hook
pytest_sessionstart() (in module _pytest.hookspec)
pytest_terminal_summary
hook
pytest_terminal_summary() (in module _pytest.hookspec)
PYTEST_THEME
,
[1]
,
[2]
PYTEST_THEME_MODE
,
[1]
pytest_unconfigure
hook
pytest_unconfigure() (in module _pytest.hookspec)
pytest_warning_captured
hook
pytest_warning_captured() (in module _pytest.hookspec)
pytest_warning_recorded
hook
pytest_warning_recorded() (in module _pytest.hookspec)
PytestAssertRewriteWarning (class in pytest)
PytestCacheWarning (class in pytest)
PytestCollectionWarning (class in pytest)
pytestconfig
fixture
pytestconfig() (in module _pytest.fixtures)
PytestConfigWarning (class in pytest)
PytestDeprecationWarning (class in pytest)
pytester
fixture
Pytester (class in pytest)
Pytester.TimeoutExpired
PytestExperimentalApiWarning (class in pytest)
pytestmark
global variable interpreted by pytest
PytestPluginManager (class in pytest)
PytestUnhandledCoroutineWarning (class in pytest)
PytestUnhandledThreadExceptionWarning (class in pytest)
PytestUnknownMarkWarning (class in pytest)
PytestUnraisableExceptionWarning (class in pytest)
PytestWarning (class in pytest)
Python Enhancement Proposals
PEP 0373#maintenance-releases
PEP 0429#release-schedule
PEP 235
PEP 302
,
[1]
,
[2]
PEP 415
PEP 420
PEP 479
PEP 506
PEP 506#recommended-filter-settings-for-test-runners
PEP 552
PEP 565
python:PYTHONWARNINGS
python_classes
configuration value
python_files
configuration value
python_functions
configuration value
PYTHONPATH
pythonpath
configuration value
R
raiseerror() (FixtureRequest method)
raises() (in module pytest)
re_match_lines() (LineMatcher method)
re_match_lines_random() (LineMatcher method)
readouterr() (CaptureFixture method)
record_property
fixture
record_property() (in module _pytest.junitxml)
record_testsuite_property
fixture
record_testsuite_property() (in module _pytest.junitxml)
record_tuples() (LogCaptureFixture property)
RecordedHookCall (class in pytest)
records() (LogCaptureFixture property)
recwarn
fixture
recwarn() (in module _pytest.recwarn)
register() (PytestPluginManager method)
register_assert_rewrite() (in module pytest)
reportinfo() (Item method)
repr_failure() (Collector method)
(Function method)
(Node method)
request
fixture
required_plugins
configuration value
result (CollectReport attribute)
result() (CallInfo property)
ret (RunResult attribute)
rootpath() (Config property)
run() (Pytester method)
(Testdir method)
runitem() (Pytester method)
(Testdir method)
runpytest() (Pytester method)
(Testdir method)
runpytest_inprocess() (Pytester method)
(Testdir method)
runpytest_subprocess() (Pytester method)
(Testdir method)
runpython() (Pytester method)
(Testdir method)
runpython_c() (Pytester method)
(Testdir method)
RunResult (class in pytest)
runtest() (Function method)
(FunctionDefinition method)
(Item method)
S
scope() (FixtureDef property)
(FixtureRequest property)
sections (CollectReport attribute)
(TestReport attribute)
Session (class in pytest)
session (Node attribute)
session() (FixtureRequest property)
Session.Failed
Session.Interrupted
set() (Cache method)
set_blocked() (PytestPluginManager method)
set_level() (LogCaptureFixture method)
setattr() (MonkeyPatch method)
setdefault() (Stash method)
setenv() (MonkeyPatch method)
setitem() (MonkeyPatch method)
setup() (FunctionDefinition method)
skip() (in module pytest)
skipped() (CollectReport property)
(TestReport property)
spawn() (Pytester method)
(Testdir method)
spawn_pytest() (Pytester method)
(Testdir method)
start (CallInfo attribute)
startpath() (Session property)
Stash (class in pytest)
stash (Config attribute)
(Node attribute)
StashKey (class in pytest)
stderr (RunResult attribute)
stdout (RunResult attribute)
stop (CallInfo attribute)
str() (LineMatcher method)
subset_hook_caller() (PytestPluginManager method)
syspath_prepend() (MonkeyPatch method)
syspathinsert() (Pytester method)
(Testdir method)
T
tb() (ExceptionInfo property)
TempdirFactory (class in pytest)
TempPathFactory (class in pytest)
testdir
fixture
Testdir (class in pytest)
Testdir.TimeoutExpired
testpaths
configuration value
TestReport (class in pytest)
TESTS_FAILED (ExitCode attribute)
text() (LogCaptureFixture property)
tmp_path
fixture
tmp_path() (in module _pytest.tmpdir)
tmp_path_factory
fixture
tmpdir
fixture
tmpdir() (in module _pytest.legacypath.LegacyTmpdirPlugin)
(Testdir property)
tmpdir_factory
fixture
traceback() (ExceptionInfo property)
type() (ExceptionInfo property)
typename() (ExceptionInfo property)
U
undo() (MonkeyPatch method)
unregister() (PytestPluginManager method)
USAGE_ERROR (ExitCode attribute)
UsageError (class in pytest)
usefixtures
configuration value
user_properties (Item attribute)
(TestReport attribute)
V
value() (ExceptionInfo property)
W
warn() (Node method)
WarningsRecorder (class in pytest)
warns() (in module pytest)
when (CallInfo attribute)
(TestReport attribute)
with_args() (MarkDecorator method)
X
xfail() (in module pytest)
xfail_strict
configuration value
Contents
Home
Get started
How-to guides
Reference guides
Explanation
Complete table of contents
Library of examples
About the project
Changelog
Contributing
Backwards Compatibility
Python 2.7 and 3.4 Support
Sponsor
pytest for Enterprise
License
Contact Channels
Index
Related Topics
Documentation overview
Useful Links
pytest @ PyPI
pytest @ GitHub
Issue Tracker
PDF Documentation