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
Method
test_eq_multiline_text
(self)
doc/en/example/assertion/failure_demo.py:49
Method
test_eq_set
(self)
doc/en/example/assertion/failure_demo.py:73
Method
test_eq_similar_text
(self)
doc/en/example/assertion/failure_demo.py:46
Method
test_eq_text
(self)
doc/en/example/assertion/failure_demo.py:43
Method
test_error
(self)
testing/example_scripts/unittest/test_unittest_asynctest.py:15
Function
test_error_attribute_issue555
(pytester: Pytester)
testing/test_capture.py:1419
Function
test_error_diff
(code: str, expected: str, pytester: Pytester)
testing/test_error_diffs.py:278
Function
test_error_during_readouterr
Make sure we suspend capturing if errors occur during readouterr
testing/test_capture.py:829
Function
test_error_message_with_parametrized_fixtures
(pytester: Pytester)
testing/test_unittest.py:1114
Method
test_error_messages
(self, assert_approx_raises_regex)
testing/python/approx.py:96
Method
test_error_messages_invalid_args
(self, assert_approx_raises_regex)
testing/python/approx.py:203
Method
test_error_messages_with_different_verbosity
(self, assert_approx_raises_regex)
testing/python/approx.py:227
Function
test_errors_in_xfail_skip_expressions
(pytester: Pytester)
testing/test_skipping.py:1126
Function
test_escaped_parametrized_names_xml
( pytester: Pytester, run_and_parse: RunAndParse )
testing/test_junitxml.py:1127
Function
test_escaped_skipreason_issue3533
( pytester: Pytester, run_and_parse: RunAndParse )
testing/test_junitxml.py:1610
Method
test_exact_teardown_issue1206
Issue shadowing error with wrong number of arguments on teardown_method.
testing/test_runner.py:317
Method
test_exact_teardown_issue90
(self, pytester: Pytester)
testing/test_runner.py:277
Method
test_exactly_equal
(self)
testing/python/approx.py:334
Method
test_example_items1
(self, pytester: Pytester)
testing/test_collection.py:697
Method
test_exc_chain_repr
(self, importasmod, tw_mock)
testing/code/test_excinfo.py:1127
Method
test_exc_chain_repr_cycle
(self, importasmod, tw_mock)
testing/code/test_excinfo.py:1311
Method
test_exc_chain_repr_without_traceback
Handle representation of exception chains where one of the exceptions doesn't have a real traceback, such as those raised in a subpro
testing/code/test_excinfo.py:1266
Method
test_exc_repr_chain_suppression
Check that exc repr does not show chained exceptions in Python 3. - When the exception is raised with "from None" - Explicitly suppres
testing/code/test_excinfo.py:1212
Method
test_except_body
(self)
testing/code/test_source.py:547
Method
test_except_line
(self)
testing/code/test_source.py:543
Function
test_exception_handling_no_traceback
Handle chain exceptions in tasks submitted by the multiprocess module (#1984).
testing/test_assertion.py:1437
Function
test_exception_printing_skip
()
testing/test_runner.py:688
Function
test_exception_repr_extraction_error_on_recursion
Ensure we can properly detect a recursion error even if some locals raise error on comparison (#2459).
testing/code/test_excinfo.py:1424
Function
test_exceptions
()
testing/io/test_saferepr.py:36
Function
test_excinfo_errisinstance
()
testing/code/test_excinfo.py:353
Function
test_excinfo_exconly
()
testing/code/test_excinfo.py:320
Function
test_excinfo_for_later
()
testing/code/test_excinfo.py:347
Function
test_excinfo_from_exc_info_simple
()
testing/code/test_excinfo.py:47
Function
test_excinfo_getstatement
()
testing/code/test_excinfo.py:56
Function
test_excinfo_no_python_sourcecode
(tmp_path: Path)
testing/code/test_excinfo.py:367
Function
test_excinfo_no_sourcecode
()
testing/code/test_excinfo.py:358
Function
test_excinfo_repr_str
()
testing/code/test_excinfo.py:330
Function
test_excinfo_simple
()
testing/code/test_excinfo.py:39
Function
test_exclude
(pytester: Pytester)
testing/test_session.py:266
Function
test_exclude_glob
(pytester: Pytester)
testing/test_session.py:277
Method
test_exec_type_error_filter
See #7742
testing/code/test_excinfo.py:1353
Method
test_exit_first_problem
(self, pytester: Pytester)
testing/test_session.py:78
Function
test_exit_from_assertrepr_compare
(monkeypatch)
testing/test_assertion.py:1652
Function
test_exit_on_collection_error
Verify that all collection errors are collected and no tests executed
testing/test_collection.py:907
Function
test_exit_on_collection_with_maxfail_bigger_than_n_errors
Verify the test run aborts due to collection errors even if maxfail count of errors was not reached.
testing/test_collection.py:948
Function
test_exit_on_collection_with_maxfail_smaller_than_n_errors
Verify collection is aborted once maxfail errors are encountered ignoring further modules which would cause more collection errors.
testing/test_collection.py:925
Function
test_exit_outcome
(pytester: Pytester)
testing/test_unittest.py:1161
Method
test_exit_propagates
(self, pytester: Pytester)
testing/test_runner.py:399
Function
test_exit_with_msg_and_reason_fails
(pytester: Pytester)
testing/test_skipping.py:1507
Method
test_exit_with_msg_is_deprecated
(self, pytester: Pytester)
testing/deprecated_test.py:246
Function
test_exit_with_reason_works_ok
(pytester: Pytester)
testing/test_skipping.py:1523
Method
test_expected_exception_is_not_a_baseexception
(self)
testing/python/raises.py:281
Method
test_expected_value_type_error
(self, x, name)
testing/python/approx.py:772
Method
test_expecting_inf
(self)
testing/python/approx.py:479
Method
test_expecting_nan
(self)
testing/python/approx.py:490
Method
test_expecting_zero
(self)
testing/python/approx.py:464
Method
test_explicit_config_file_sets_rootdir
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
testing/test_config.py:1413
Method
test_explicitly_specified_config_file_is_loaded
( self, pytester: Pytester )
testing/test_config.py:479
Method
test_extend_fixture_conftest_conftest
(self, pytester: Pytester)
testing/python/fixtures.py:171
Method
test_extend_fixture_conftest_module
(self, pytester: Pytester)
testing/python/fixtures.py:164
Method
test_extend_fixture_conftest_plugin
(self, pytester: Pytester)
testing/python/fixtures.py:178
Method
test_extend_fixture_module_class
(self, pytester: Pytester)
testing/python/fixtures.py:157
Method
test_extend_fixture_plugin_plugin
(self, pytester: Pytester)
testing/python/fixtures.py:209
Method
test_extended_report_deserialization
This test came originally from test_remote.py in xdist (ca03269).
testing/test_reports.py:210
Method
test_external_fixture
(self, pytester: Pytester)
testing/python/fixtures.py:3814
Function
test_external_plugins_integrated
(pytester: Pytester, plugin)
testing/deprecated_test.py:23
Method
test_external_test_module_imports_not_cleaned_up
( self, pytester: Pytester )
testing/test_pytester.py:279
Method
test_factory_setup_as_classes_fails
(self, pytester: Pytester)
testing/python/fixtures.py:1367
Method
test_factory_uses_unknown_funcarg_as_dependency_error
( self, pytester: Pytester )
testing/python/fixtures.py:1337
Function
test_fail_and_continue_with_stepwise
(stepwise_pytester: Pytester)
testing/test_stepwise.py:114
Function
test_fail_extra_reporting
(pytester: Pytester, monkeypatch)
testing/test_terminal.py:1083
Function
test_fail_fails_with_msg_and_reason
(pytester: Pytester)
testing/test_skipping.py:1475
Function
test_fail_on_errors
(error_pytester: Pytester)
testing/test_stepwise.py:158
Function
test_fail_reporting_on_pass
(pytester: Pytester)
testing/test_terminal.py:1097
Function
test_fail_using_reason_works_ok
(pytester: Pytester)
testing/test_skipping.py:1461
Method
test_fail_with_msg_is_deprecated
(self, pytester: Pytester)
testing/deprecated_test.py:227
Method
test_failed
(self, pytester: Pytester, pastebinlist)
testing/test_pastebin.py:18
Method
test_failed_changed_to_xfail_or_skip
( self, pytester: Pytester, mark: str )
testing/test_cacheprovider.py:625
Method
test_failedfirst_order
(self, pytester: Pytester)
testing/test_cacheprovider.py:313
Method
test_failfunction
(self, pytester: Pytester)
testing/test_runner.py:131
Method
test_failing_import
(self, pytester: Pytester)
testing/python/collect.py:19
Method
test_failing_setup_issue9
(self, pytester: Pytester)
testing/test_skipping.py:740
Method
test_failing_teardown_issue9
(self, pytester: Pytester)
testing/test_skipping.py:755
Function
test_failure_demo_fails_properly
(pytester)
doc/en/example/assertion/test_failures.py:8
Method
test_failure_escape
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:586
Method
test_failure_function
( self, pytester: Pytester, junit_logging, run_and_parse: RunAndParse,
testing/test_junitxml.py:501
Function
test_failure_in_setup
(pytester: Pytester)
testing/test_runner.py:821
Method
test_failure_in_setup_function
(self, pytester: Pytester)
testing/test_runner.py:187
Method
test_failure_in_setup_function_ignores_custom_repr
( self, pytester: Pytester )
testing/test_runner.py:355
Method
test_failure_in_teardown_function
(self, pytester: Pytester)
testing/test_runner.py:204
Method
test_failure_verbose_message
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:569
Function
test_failure_with_changed_cwd
Test failure lines should use absolute paths if cwd has changed since invocation, so the path is correct (#6428).
testing/test_nodes.py:140
Function
test_fancy_items_regression
(pytester: Pytester, run_and_parse: RunAndParse)
testing/test_junitxml.py:1413
Method
test_fdcapture_invalid_fd_with_fd_reuse
(self, pytester: Pytester)
testing/test_capture.py:1285
Method
test_fdcapture_invalid_fd_without_fd_reuse
(self, pytester: Pytester)
testing/test_capture.py:1300
Function
test_fdcapture_tmpfile_remains_the_same
()
testing/test_capture.py:1341
Function
test_fdopen_kept_alive_issue124
(pytester: Pytester)
testing/test_terminal.py:1564
Method
test_file
File and parts.
testing/test_main.py:120
Method
test_file_not_found
(self, pytester: Pytester)
testing/acceptance_test.py:69
Method
test_file_not_found_unconfigure_issue143
(self, pytester: Pytester)
testing/acceptance_test.py:74
← previous
next →
2,701–2,800 of 4,602, ranked by callers