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
test_do_class_cleanups_on_teardownclass_failure
(pytester: Pytester)
testing/test_unittest.py:1375
Function
test_do_cleanups_on_setup_failure
(pytester: Pytester)
testing/test_unittest.py:1426
Function
test_do_cleanups_on_success
(pytester: Pytester)
testing/test_unittest.py:1402
Function
test_do_cleanups_on_teardown_failure
(pytester: Pytester)
testing/test_unittest.py:1451
Method
test_do_option_postinitialize
(self, pytester: Pytester)
testing/test_pluginmanager.py:66
Function
test_doc
>>> 10 > 5 True
testing/example_scripts/doctest/main_py/test_normal_module.py:1
Method
test_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
Method
test_docstring_on_hookspec
(self)
testing/acceptance_test.py:357
Method
test_docstring_partial_context_around_error
Test that we show some context before the actual line of a failing doctest.
testing/test_doctest.py:246
Method
test_doctest_id
(self, pytester: Pytester)
testing/acceptance_test.py:810
Function
test_doctest_items
(pytester: Pytester)
testing/python/show_fixtures_per_test.py:161
Method
test_doctest_linedata_missing
(self, pytester: Pytester)
testing/test_doctest.py:320
Method
test_doctest_linedata_on_property
(self, pytester: Pytester)
testing/test_doctest.py:339
Function
test_doctest_mock_objects_dont_recurse_missbehaved
(mock_module, pytester: Pytester)
testing/test_doctest.py:1499
Method
test_doctest_module_session_fixture
Test that session fixtures are initialized for doctest modules (#768).
testing/test_doctest.py:1213
Method
test_doctest_no_linedata_on_overriden_property
(self, pytester: Pytester)
testing/test_doctest.py:369
Method
test_doctest_outcomes
(self, pytester: Pytester)
testing/test_doctest.py:210
Method
test_doctest_report_cdiff
(self, pytester: Pytester)
testing/test_doctest.py:1441
Method
test_doctest_report_invalid
(self, pytester: Pytester)
testing/test_doctest.py:1489
Method
test_doctest_report_ndiff
(self, pytester: Pytester)
testing/test_doctest.py:1457
Method
test_doctest_report_none_or_only_first_failure
(self, pytester, format)
testing/test_doctest.py:1472
Method
test_doctest_report_udiff
(self, pytester, format)
testing/test_doctest.py:1435
Method
test_doctest_set_trace_quit
(self, pytester: Pytester)
testing/test_debugging.py:511
Method
test_doctest_unex_importerror_only_txt
(self, pytester: Pytester)
testing/test_doctest.py:400
Method
test_doctest_unex_importerror_with_module
(self, pytester: Pytester)
testing/test_doctest.py:417
Method
test_doctest_unexpected_exception
(self, pytester: Pytester)
testing/test_doctest.py:182
Method
test_doctestmodule
(self, pytester: Pytester)
testing/test_doctest.py:441
Method
test_doctestmodule_external_and_issue116
(self, pytester: Pytester)
testing/test_doctest.py:455
Method
test_doctestmodule_three_tests
(self, pytester: Pytester)
testing/test_doctest.py:553
Method
test_doctestmodule_two_tests_one_fail
(self, pytester: Pytester)
testing/test_doctest.py:580
Method
test_doctestmodule_with_fixtures
(self, pytester: Pytester)
testing/test_doctest.py:540
Method
test_doctests
(self, mocked_doctest_runner)
testing/python/approx.py:737
Function
test_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
Function
test_does_not_crash_on_recursive_symlink
Regression test for an issue around recursive symlinks (#7951).
testing/test_collection.py:1495
Function
test_does_not_create_boilerplate_in_existing_dirs
(pytester: Pytester)
testing/test_cacheprovider.py:1224
Function
test_does_not_eagerly_collect_packages
(pytester: Pytester)
testing/test_collection.py:1350
Method
test_does_not_exist
Given a file/module that does not exist raises UsageError.
testing/test_main.py:174
Function
test_does_not_put_src_on_path
(pytester: Pytester)
testing/test_collection.py:1358
Method
test_does_not_raise
(self, pytester: Pytester)
testing/python/raises.py:82
Method
test_does_not_raise_does_raise
(self, pytester: Pytester)
testing/python/raises.py:107
Method
test_doesnt_truncate_at_when_input_is_5_lines_and_LT_max_chars
(self)
testing/test_assertion.py:1146
Method
test_doesnt_truncate_when_input_is_empty_list
(self)
testing/test_assertion.py:1141
Function
test_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
Function
test_dont_configure_on_workers
(tmp_path: Path)
testing/test_junitxml.py:944
Method
test_dont_rewrite
(self)
testing/test_assertrewrite.py:136
Method
test_dont_rewrite_if_hasattr_fails
(self, request)
testing/test_assertrewrite.py:260
Method
test_dont_rewrite_plugin
(self, pytester: Pytester)
testing/test_assertrewrite.py:143
Method
test_dont_write_bytecode
(self, pytester: Pytester, monkeypatch)
testing/test_assertrewrite.py:842
Function
test_dontreadfrominput
()
testing/test_capture.py:889
Function
test_dontreadfrominput_has_encoding
(pytester: Pytester)
testing/test_capture.py:1451
Function
test_double_colon_split_function_issue469
( pytester: Pytester, run_and_parse: RunAndParse )
testing/test_junitxml.py:1144
Function
test_double_colon_split_method_issue469
( pytester: Pytester, run_and_parse: RunAndParse )
testing/test_junitxml.py:1162
Method
test_double_pytestcmdline
(self, pytester: Pytester)
testing/acceptance_test.py:536
Method
test_double_test
If a test is run again, the warning should still be raised
testing/test_recwarn.py:355
Function
test_doubledash_considered
(pytester: Pytester)
testing/test_conftest.py:131
Method
test_drop_short_0
(self, parser: parseopt.Parser)
testing/test_parseopt.py:237
Method
test_drop_short_2
(self, parser: parseopt.Parser)
testing/test_parseopt.py:244
Method
test_drop_short_3
(self, parser: parseopt.Parser)
testing/test_parseopt.py:249
Method
test_drop_short_help0
(self, parser: parseopt.Parser)
testing/test_parseopt.py:255
Method
test_drop_short_help1
(self, parser: parseopt.Parser)
testing/test_parseopt.py:262
Method
test_drop_short_helper
(self)
testing/test_parseopt.py:200
Method
test_duplicates_handled_correctly
(self, pytester: Pytester)
testing/test_collection.py:866
Function
test_dynamic_compile_shows_nicely
()
doc/en/example/assertion/failure_demo.py:191
Function
test_dynamic_fixture_request
(pytester: Pytester)
testing/test_setuponly.py:211
Method
test_dynamic_parametrized_ordering
(self, pytester: Pytester)
testing/python/fixtures.py:2651
Method
test_dynamic_scope
(self, pytester: Pytester)
testing/python/fixtures.py:2445
Method
test_dynamic_scope_bad_return
(self, pytester: Pytester)
testing/python/fixtures.py:2487
Method
test_dynamic_xfail_no_run
(self, pytester: Pytester)
testing/test_skipping.py:534
Method
test_dynamic_xfail_set_during_funcarg_setup
(self, pytester: Pytester)
testing/test_skipping.py:548
Method
test_dynamic_xfail_set_during_runtest_failed
(self, pytester: Pytester)
testing/test_skipping.py:562
Method
test_dynamic_xfail_set_during_runtest_passed_strict
( self, pytester: Pytester )
testing/test_skipping.py:575
Method
test_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
Method
test_early_hook_configure_error_issue38
(self, pytester: Pytester)
testing/acceptance_test.py:55
Method
test_early_hook_error_issue38_1
(self, pytester: Pytester)
testing/acceptance_test.py:35
Method
test_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
Method
test_early_load_setuptools_name
( self, pytester: Pytester, monkeypatch, load_cov_early )
testing/acceptance_test.py:106
Method
test_early_skip
(self, pytester: Pytester)
testing/acceptance_test.py:226
Method
test_earlyinit
(self, pytester: Pytester)
testing/acceptance_test.py:506
Method
test_elif
(self)
testing/code/test_source.py:593
Method
test_elif_clause
(self)
testing/code/test_source.py:589
Method
test_else
(self)
testing/code/test_source.py:551
Method
test_else
(self)
testing/code/test_source.py:597
Function
test_empty_help_param
Test that an empty help param is displayed correctly.
testing/test_helpconfig.py:62
Function
test_empty_is_false
()
testing/test_mark_expression.py:12
Method
test_empty_pytest_ini
pytest.ini files are always considered for configuration, even if empty
testing/test_findpaths.py:12
Function
test_enabled
Test single crashing test displays a traceback.
testing/test_faulthandler.py:8
Function
test_encodedfile_writelines
(tmpfile: BinaryIO)
testing/test_capture.py:1620
Method
test_encoding
Test support for doctest_encoding ini option.
testing/test_doctest.py:159
Method
test_ensuresyspath_append
(self, tmp_path: Path)
testing/test_pathlib.py:258
Method
test_enter_leave_pdb_hooks_are_called
( self, post_mortem, pytester: Pytester )
testing/test_debugging.py:790
Function
test_entrysource_Queue_example
()
testing/code/test_excinfo.py:383
Method
test_environ_custom_class
( self, pytester: Pytester, custom_debugger_hook, arg: str )
testing/test_debugging.py:975
Method
test_eq_attrs
(self)
doc/en/example/assertion/failure_demo.py:110
Method
test_eq_dataclass
(self)
doc/en/example/assertion/failure_demo.py:98
Method
test_eq_dict
(self)
doc/en/example/assertion/failure_demo.py:70
Method
test_eq_list
(self)
doc/en/example/assertion/failure_demo.py:62
Method
test_eq_list_long
(self)
doc/en/example/assertion/failure_demo.py:65
Method
test_eq_long_text
(self)
doc/en/example/assertion/failure_demo.py:52
Method
test_eq_long_text_multiline
(self)
doc/en/example/assertion/failure_demo.py:57
Method
test_eq_longer_list
(self)
doc/en/example/assertion/failure_demo.py:76
← previous
next →
2,601–2,700 of 4,602, ranked by callers