MCPcopy Create free account

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

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

Functiontest_xfail_handling
Ensure normal xfail is ignored, and strict xfail interrupts the session in sw mode (#5547)
testing/test_stepwise.py:201
Methodtest_xfail_imperative
(self, pytester: Pytester)
testing/test_skipping.py:481
Methodtest_xfail_imperative_in_setup_function
(self, pytester: Pytester)
testing/test_skipping.py:496
Functiontest_xfail_item
(pytester: Pytester)
testing/test_skipping.py:1307
Methodtest_xfail_markeval_namespace
(self, pytester: Pytester)
testing/test_skipping.py:711
Methodtest_xfail_not_considered_failure
(self, pytester: Pytester)
testing/test_cacheprovider.py:598
Methodtest_xfail_not_report_default
(self, pytester: Pytester)
testing/test_skipping.py:412
Methodtest_xfail_not_run_no_setup_run
(self, pytester: Pytester)
testing/test_skipping.py:452
Methodtest_xfail_not_run_xfail_reporting
(self, pytester: Pytester)
testing/test_skipping.py:426
Methodtest_xfail_passing_is_xpass
(self, pytester: Pytester, strict: bool)
testing/python/metafunc.py:1727
Methodtest_xfail_raises
( self, expected, actual, matchline, pytester: Pytester )
testing/test_skipping.py:598
Methodtest_xfail_run_anyway
(self, pytester: Pytester)
testing/test_skipping.py:354
Methodtest_xfail_run_with_skip_mark
( self, pytester: Pytester, test_input, expected )
testing/test_skipping.py:383
Methodtest_xfail_simple
(self, pytester: Pytester, strict: bool)
testing/test_skipping.py:292
Functiontest_xfail_skipif_with_globals
(pytester: Pytester)
testing/test_skipping.py:1174
Methodtest_xfail_strict_considered_failure
(self, pytester: Pytester)
testing/test_cacheprovider.py:610
Functiontest_xfail_test_setup_exception
(pytester: Pytester)
testing/test_skipping.py:1201
Methodtest_xfail_using_platform
Verify that platform can be used with xfail statements.
testing/test_skipping.py:323
Methodtest_xfail_with_arg
(self, pytester: Pytester)
testing/python/metafunc.py:1678
Methodtest_xfail_with_arg_and_kwarg
(self, pytester: Pytester)
testing/python/metafunc.py:1710
Methodtest_xfail_with_kwarg
(self, pytester: Pytester)
testing/python/metafunc.py:1694
Methodtest_xfail_xpass
(self, pytester: Pytester)
testing/test_skipping.py:468
Methodtest_xfail_xpassed
(self, pytester: Pytester)
testing/test_skipping.py:308
Methodtest_xfail_xpassed_strict
(self, pytester: Pytester)
testing/test_skipping.py:338
Methodtest_xfailure_function
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:640
Methodtest_xfailure_marker
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:660
Methodtest_xfailure_xpass
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:712
Methodtest_xfailure_xpass_strict
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:731
Functiontest_xpassed_with_strict_is_considered_a_failure
(pytester: Pytester)
testing/test_pytester.py:152
Functiontest_yield_fixture_is_deprecated
()
testing/deprecated_test.py:123
Functiontest_yield_fixture_with_no_value
(pytester: Pytester)
testing/python/fixtures.py:4457
Methodtest_yields_more_than_one
(self, pytester: Pytester)
testing/python/fixtures.py:3722
Methodtest_z1_unpack_error
(self)
doc/en/example/assertion/failure_demo.py:215
Methodtest_z2_type_error
(self)
doc/en/example/assertion/failure_demo.py:219
Methodtest_zero_tests_collected
Some plugins (testmon for example) might issue pytest_runtest_logreport without any tests being actually collected (#2971).
testing/test_terminal.py:1944
Methodtest_zero_tolerance
(self)
testing/python/approx.py:353
Methodtest_zipfile
(self, pytester: Pytester)
testing/test_assertrewrite.py:779
Functiontest_zipimport_hook
Test package loader is being used correctly (see #1837).
testing/acceptance_test.py:962
Methodtestdir
Identical to :fixture:`pytester`, and provides an instance whose methods return legacy ``LEGACY_PATH`` objects instead when applicabl
src/_pytest/legacypath.py:260
Methodtext
The formatted log text.
src/_pytest/logging.py:398
Methodtext
(self)
testing/test_junitxml.py:127
Methodtfunc
(match)
testing/python/raises.py:209
Functiontmp_path
Return a temporary directory path object which is unique to each test function invocation, created as a sub directory of the base temporary di
src/_pytest/tmpdir.py:198
Functiontmp_path_factory
Return a :class:`pytest.TempPathFactory` instance for the test session.
src/_pytest/tmpdir.py:183
Methodtmpdir
Temporary directory where tests are executed.
src/_pytest/legacypath.py:59
Methodtmpdir
Return a temporary directory path object which is unique to each test function invocation, created as a sub directory of the base temporary
src/_pytest/legacypath.py:303
Methodtmpdir_factory
Return a :class:`pytest.TempdirFactory` instance for the test session.
src/_pytest/legacypath.py:296
Functiontmpfile
(pytester: Pytester)
testing/test_capture.py:934
Methodto_text
(s: Union[Any, bytes])
src/_pytest/pytester.py:782
Methodtolerance
Return the tolerance for the comparison. This could be either an absolute tolerance or a relative tolerance, depending on what the us
src/_pytest/python_api.py:464
Methodtoterminal
(self, tw: TerminalWriter)
src/_pytest/doctest.py:163
Methodtoterminal
(self, out: TerminalWriter)
src/_pytest/reports.py:418
Methodtoterminal
(self, tw: TerminalWriter)
src/_pytest/fixtures.py:882
Methodtoterminal
(self, tw: TerminalWriter)
src/_pytest/_code/code.py:993
Methodtoterminal
(self, tw: TerminalWriter)
src/_pytest/_code/code.py:1010
Methodtoterminal
(self, tw: TerminalWriter)
src/_pytest/_code/code.py:1024
Methodtoterminal
(self, tw: TerminalWriter)
src/_pytest/_code/code.py:1037
Methodtoterminal
(self, tw: TerminalWriter)
src/_pytest/_code/code.py:1069
Methodtoterminal
(self, tw: TerminalWriter)
src/_pytest/_code/code.py:1159
Methodtoterminal
(self, tw: TerminalWriter, indent="")
src/_pytest/_code/code.py:1174
Functiontr
()
testing/test_terminal.py:1698
Methodtraceback
The traceback.
src/_pytest/_code/code.py:560
Functiontruncate_if_required
Truncate this assertion explanation if the given test item is eligible.
src/_pytest/assertion/truncate.py:18
Methodtw
( self, request, tmp_path: Path )
testing/io/test_terminalwriter.py:67
Functiontw_mock
Returns a mock terminal writer
testing/conftest.py:68
Functiontwo
(request)
testing/example_scripts/unittest/test_parametrized_fixture_error_message.py:7
Methodtype
The exception class.
src/_pytest/_code/code.py:528
Methodtypename
The type name of the exception.
src/_pytest/_code/code.py:552
Functionunset_tracing
()
src/_pytest/helpconfig.py:122
Methodunwritable_cache_dir
(self, pytester: Pytester)
testing/test_cacheprovider.py:48
Methodvalue
The exception value.
src/_pytest/_code/code.py:536
Methodverbose_testfile
(self, pytester: Pytester)
testing/test_terminal.py:963
Methodverbosity
(self)
src/_pytest/terminal.py:354
Methodvisit_Assert
Return the AST statements to replace the ast.Assert instance. This rewrites the test of an assertion to provide intermediate values a
src/_pytest/assertion/rewrite.py:846
Methodvisit_Attribute
(self, attr: ast.Attribute)
src/_pytest/assertion/rewrite.py:1052
Methodvisit_BinOp
(self, binop: ast.BinOp)
src/_pytest/assertion/rewrite.py:1014
Methodvisit_BoolOp
(self, boolop: ast.BoolOp)
src/_pytest/assertion/rewrite.py:973
Methodvisit_Call
(self, call: ast.Call)
src/_pytest/assertion/rewrite.py:1022
Methodvisit_Compare
(self, comp: ast.Compare)
src/_pytest/assertion/rewrite.py:1062
Methodvisit_Name
(self, name: ast.Name)
src/_pytest/assertion/rewrite.py:963
Methodvisit_Starred
(self, starred: ast.Starred)
src/_pytest/assertion/rewrite.py:1046
Methodvisit_UnaryOp
(self, unary: ast.UnaryOp)
src/_pytest/assertion/rewrite.py:1008
Functionwallet
()
testing/plugins_integration/bdd_wallet.py:15
Methodwidth_of_current_line
Return an estimate of the width so far in the current line.
src/_pytest/_io/terminalwriter.py:93
Methodworld
()
testing/test_monkeypatch.py:372
Functionwrap
(f)
testing/python/integration.py:86
Functionwrapped_func
(x, y, z)
testing/python/integration.py:92
Functionwrapper
(*args, **kwargs)
src/_pytest/debugging.py:322
Methodwriteorg
(self, data)
src/_pytest/capture.py:303
Methodwriteorg
(self, data)
src/_pytest/capture.py:319
Methodwriteorg
Write to original file descriptor.
src/_pytest/capture.py:437
Functionx
()
testing/code/test_source.py:308
Methodx
()
testing/test_assertrewrite.py:397
Methodxtest_dynamic_xfail_set_during_setup
(self, pytester: Pytester)
testing/test_skipping.py:519
Methodxunit_setup_class_fixture
(cls)
src/_pytest/python.py:842
Methodxunit_setup_function_fixture
(request)
src/_pytest/python.py:581
Methodxunit_setup_method_fixture
(self, request)
src/_pytest/python.py:880
Methodxunit_setup_module_fixture
(request)
src/_pytest/python.py:552
Methodxyz
()
testing/code/test_excinfo.py:129
Functionxyzsomething
(request)
testing/example_scripts/fixtures/fill_fixtures/test_funcarg_lookupfails.py:5
← previousnext →4,501–4,600 of 4,602, ranked by callers