MCPcopy Create free account

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

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

Functiontest_do_class_cleanups_on_teardownclass_failure
(pytester: Pytester)
testing/test_unittest.py:1375
Functiontest_do_cleanups_on_setup_failure
(pytester: Pytester)
testing/test_unittest.py:1426
Functiontest_do_cleanups_on_success
(pytester: Pytester)
testing/test_unittest.py:1402
Functiontest_do_cleanups_on_teardown_failure
(pytester: Pytester)
testing/test_unittest.py:1451
Methodtest_do_option_postinitialize
(self, pytester: Pytester)
testing/test_pluginmanager.py:66
Functiontest_doc
>>> 10 > 5 True
testing/example_scripts/doctest/main_py/test_normal_module.py:1
Methodtest_docstring_full_context_around_error
Test that we show the whole context before the actual line of a failing doctest, provided that the context is up to 10 lines long.
testing/test_doctest.py:290
Methodtest_docstring_on_hookspec
(self)
testing/acceptance_test.py:357
Methodtest_docstring_partial_context_around_error
Test that we show some context before the actual line of a failing doctest.
testing/test_doctest.py:246
Methodtest_doctest_id
(self, pytester: Pytester)
testing/acceptance_test.py:810
Functiontest_doctest_items
(pytester: Pytester)
testing/python/show_fixtures_per_test.py:161
Methodtest_doctest_linedata_missing
(self, pytester: Pytester)
testing/test_doctest.py:320
Methodtest_doctest_linedata_on_property
(self, pytester: Pytester)
testing/test_doctest.py:339
Functiontest_doctest_mock_objects_dont_recurse_missbehaved
(mock_module, pytester: Pytester)
testing/test_doctest.py:1499
Methodtest_doctest_module_session_fixture
Test that session fixtures are initialized for doctest modules (#768).
testing/test_doctest.py:1213
Methodtest_doctest_no_linedata_on_overriden_property
(self, pytester: Pytester)
testing/test_doctest.py:369
Methodtest_doctest_outcomes
(self, pytester: Pytester)
testing/test_doctest.py:210
Methodtest_doctest_report_cdiff
(self, pytester: Pytester)
testing/test_doctest.py:1441
Methodtest_doctest_report_invalid
(self, pytester: Pytester)
testing/test_doctest.py:1489
Methodtest_doctest_report_ndiff
(self, pytester: Pytester)
testing/test_doctest.py:1457
Methodtest_doctest_report_none_or_only_first_failure
(self, pytester, format)
testing/test_doctest.py:1472
Methodtest_doctest_report_udiff
(self, pytester, format)
testing/test_doctest.py:1435
Methodtest_doctest_set_trace_quit
(self, pytester: Pytester)
testing/test_debugging.py:511
Methodtest_doctest_unex_importerror_only_txt
(self, pytester: Pytester)
testing/test_doctest.py:400
Methodtest_doctest_unex_importerror_with_module
(self, pytester: Pytester)
testing/test_doctest.py:417
Methodtest_doctest_unexpected_exception
(self, pytester: Pytester)
testing/test_doctest.py:182
Methodtest_doctestmodule
(self, pytester: Pytester)
testing/test_doctest.py:441
Methodtest_doctestmodule_external_and_issue116
(self, pytester: Pytester)
testing/test_doctest.py:455
Methodtest_doctestmodule_three_tests
(self, pytester: Pytester)
testing/test_doctest.py:553
Methodtest_doctestmodule_two_tests_one_fail
(self, pytester: Pytester)
testing/test_doctest.py:580
Methodtest_doctestmodule_with_fixtures
(self, pytester: Pytester)
testing/test_doctest.py:540
Methodtest_doctests
(self, mocked_doctest_runner)
testing/python/approx.py:737
Functiontest_does_not_crash_on_error_from_decorated_function
Regression test for an issue around bad exception formatting due to assertion rewriting mangling lineno's (#4984).
testing/test_collection.py:1481
Functiontest_does_not_crash_on_recursive_symlink
Regression test for an issue around recursive symlinks (#7951).
testing/test_collection.py:1495
Functiontest_does_not_create_boilerplate_in_existing_dirs
(pytester: Pytester)
testing/test_cacheprovider.py:1224
Functiontest_does_not_eagerly_collect_packages
(pytester: Pytester)
testing/test_collection.py:1350
Methodtest_does_not_exist
Given a file/module that does not exist raises UsageError.
testing/test_main.py:174
Functiontest_does_not_put_src_on_path
(pytester: Pytester)
testing/test_collection.py:1358
Methodtest_does_not_raise
(self, pytester: Pytester)
testing/python/raises.py:82
Methodtest_does_not_raise_does_raise
(self, pytester: Pytester)
testing/python/raises.py:107
Methodtest_doesnt_truncate_at_when_input_is_5_lines_and_LT_max_chars
(self)
testing/test_assertion.py:1146
Methodtest_doesnt_truncate_when_input_is_empty_list
(self)
testing/test_assertion.py:1141
Functiontest_dont_collect_non_function_callable
Test for issue https://github.com/pytest-dev/pytest/issues/331 In this case an INTERNALERROR occurred trying to report the failure of a test
testing/python/collect.py:1279
Functiontest_dont_configure_on_workers
(tmp_path: Path)
testing/test_junitxml.py:944
Methodtest_dont_rewrite
(self)
testing/test_assertrewrite.py:136
Methodtest_dont_rewrite_if_hasattr_fails
(self, request)
testing/test_assertrewrite.py:260
Methodtest_dont_rewrite_plugin
(self, pytester: Pytester)
testing/test_assertrewrite.py:143
Methodtest_dont_write_bytecode
(self, pytester: Pytester, monkeypatch)
testing/test_assertrewrite.py:842
Functiontest_dontreadfrominput
()
testing/test_capture.py:889
Functiontest_dontreadfrominput_has_encoding
(pytester: Pytester)
testing/test_capture.py:1451
Functiontest_double_colon_split_function_issue469
( pytester: Pytester, run_and_parse: RunAndParse )
testing/test_junitxml.py:1144
Functiontest_double_colon_split_method_issue469
( pytester: Pytester, run_and_parse: RunAndParse )
testing/test_junitxml.py:1162
Methodtest_double_pytestcmdline
(self, pytester: Pytester)
testing/acceptance_test.py:536
Methodtest_double_test
If a test is run again, the warning should still be raised
testing/test_recwarn.py:355
Functiontest_doubledash_considered
(pytester: Pytester)
testing/test_conftest.py:131
Methodtest_drop_short_0
(self, parser: parseopt.Parser)
testing/test_parseopt.py:237
Methodtest_drop_short_2
(self, parser: parseopt.Parser)
testing/test_parseopt.py:244
Methodtest_drop_short_3
(self, parser: parseopt.Parser)
testing/test_parseopt.py:249
Methodtest_drop_short_help0
(self, parser: parseopt.Parser)
testing/test_parseopt.py:255
Methodtest_drop_short_help1
(self, parser: parseopt.Parser)
testing/test_parseopt.py:262
Methodtest_drop_short_helper
(self)
testing/test_parseopt.py:200
Methodtest_duplicates_handled_correctly
(self, pytester: Pytester)
testing/test_collection.py:866
Functiontest_dynamic_compile_shows_nicely
()
doc/en/example/assertion/failure_demo.py:191
Functiontest_dynamic_fixture_request
(pytester: Pytester)
testing/test_setuponly.py:211
Methodtest_dynamic_parametrized_ordering
(self, pytester: Pytester)
testing/python/fixtures.py:2651
Methodtest_dynamic_scope
(self, pytester: Pytester)
testing/python/fixtures.py:2445
Methodtest_dynamic_scope_bad_return
(self, pytester: Pytester)
testing/python/fixtures.py:2487
Methodtest_dynamic_xfail_no_run
(self, pytester: Pytester)
testing/test_skipping.py:534
Methodtest_dynamic_xfail_set_during_funcarg_setup
(self, pytester: Pytester)
testing/test_skipping.py:548
Methodtest_dynamic_xfail_set_during_runtest_failed
(self, pytester: Pytester)
testing/test_skipping.py:562
Methodtest_dynamic_xfail_set_during_runtest_passed_strict
( self, pytester: Pytester )
testing/test_skipping.py:575
Methodtest_early_config_cmdline
early_config contains options registered by third-party plugins. This is a regression involving pytest-cov (and possibly others) introduced i
testing/test_config.py:452
Methodtest_early_hook_configure_error_issue38
(self, pytester: Pytester)
testing/acceptance_test.py:55
Methodtest_early_hook_error_issue38_1
(self, pytester: Pytester)
testing/acceptance_test.py:35
Methodtest_early_ignored_attributes
Builtin attributes should be ignored early on, even if configuration would otherwise allow them. This tests a performance optimizatio
testing/python/collect.py:930
Methodtest_early_load_setuptools_name
( self, pytester: Pytester, monkeypatch, load_cov_early )
testing/acceptance_test.py:106
Methodtest_early_skip
(self, pytester: Pytester)
testing/acceptance_test.py:226
Methodtest_earlyinit
(self, pytester: Pytester)
testing/acceptance_test.py:506
Methodtest_elif
(self)
testing/code/test_source.py:593
Methodtest_elif_clause
(self)
testing/code/test_source.py:589
Methodtest_else
(self)
testing/code/test_source.py:551
Methodtest_else
(self)
testing/code/test_source.py:597
Functiontest_empty_help_param
Test that an empty help param is displayed correctly.
testing/test_helpconfig.py:62
Functiontest_empty_is_false
()
testing/test_mark_expression.py:12
Methodtest_empty_pytest_ini
pytest.ini files are always considered for configuration, even if empty
testing/test_findpaths.py:12
Functiontest_enabled
Test single crashing test displays a traceback.
testing/test_faulthandler.py:8
Functiontest_encodedfile_writelines
(tmpfile: BinaryIO)
testing/test_capture.py:1620
Methodtest_encoding
Test support for doctest_encoding ini option.
testing/test_doctest.py:159
Methodtest_ensuresyspath_append
(self, tmp_path: Path)
testing/test_pathlib.py:258
Methodtest_enter_leave_pdb_hooks_are_called
( self, post_mortem, pytester: Pytester )
testing/test_debugging.py:790
Functiontest_entrysource_Queue_example
()
testing/code/test_excinfo.py:383
Methodtest_environ_custom_class
( self, pytester: Pytester, custom_debugger_hook, arg: str )
testing/test_debugging.py:975
Methodtest_eq_attrs
(self)
doc/en/example/assertion/failure_demo.py:110
Methodtest_eq_dataclass
(self)
doc/en/example/assertion/failure_demo.py:98
Methodtest_eq_dict
(self)
doc/en/example/assertion/failure_demo.py:70
Methodtest_eq_list
(self)
doc/en/example/assertion/failure_demo.py:62
Methodtest_eq_list_long
(self)
doc/en/example/assertion/failure_demo.py:65
Methodtest_eq_long_text
(self)
doc/en/example/assertion/failure_demo.py:52
Methodtest_eq_long_text_multiline
(self)
doc/en/example/assertion/failure_demo.py:57
Methodtest_eq_longer_list
(self)
doc/en/example/assertion/failure_demo.py:76
← previousnext →2,601–2,700 of 4,602, ranked by callers