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_strict_xfail_condition
(self, pytester: Pytester, strict: bool)
testing/test_skipping.py:656
Method
test_strict_xfail_default_from_file
( self, pytester: Pytester, strict_val )
testing/test_skipping.py:688
Method
test_string_expression
(self, monkeypatch: MonkeyPatch)
testing/test_monkeypatch.py:52
Method
test_string_expression_class
(self, monkeypatch: MonkeyPatch)
testing/test_monkeypatch.py:56
Function
test_strtobool
()
testing/test_config.py:2003
Function
test_subclassing_both_item_and_collector_deprecated
Verifies we warn on diamond inheritance as well as correctly managing legacy inheritance ctors with missing args as found in plugins
testing/test_nodes.py:57
Method
test_subfactory_missing_funcarg
(self, pytester: Pytester)
testing/python/fixtures.py:3274
Method
test_summary
(self)
testing/test_assertion.py:338
Method
test_summary_f_alias
Test that 'f' and 'F' report chars are aliases and don't show up twice in the summary (#6334)
testing/test_terminal.py:1053
Function
test_summary_list_after_errors
Ensure the list of errors/fails/xfails/skips appears after tracebacks in terminal reporting.
testing/test_skipping.py:1403
Method
test_summary_s_alias
Test that 's' and 'S' report chars are aliases and don't show up twice in the summary
testing/test_terminal.py:1066
Function
test_summary_stats
( tr: TerminalReporter, exp_line: List[Tuple[str, Dict[str, bool]]], exp_color: str, stats_arg
testing/test_terminal.py:1833
Method
test_summing_simple
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:144
Method
test_summing_simple
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:976
Method
test_summing_simple_with_errors
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:170
Method
test_supports_breakpoint_module_global
Test that supports breakpoint global marks on Python 3.7+.
testing/test_debugging.py:914
Function
test_suppress_error_removing_lock
ensure_deletable should be resilient if lock file cannot be removed (#5456, #7491)
testing/test_pathlib.py:377
Function
test_sw_skip_help
(pytester: Pytester)
testing/test_stepwise.py:278
Method
test_syntax_error_in_module
(self, pytester: Pytester)
testing/python/collect.py:72
Method
test_syntax_error_module
(self, pytester: Pytester)
testing/test_session.py:71
Function
test_syntax_error_with_non_ascii_chars
Fix decoding issue while formatting SyntaxErrors during collection (#578).
testing/python/collect.py:1337
Function
test_syntax_errors
(expr: str, column: int, message: str)
testing/test_mark_expression.py:131
Function
test_syntax_oddeties
(expr: str, expected: bool)
testing/test_mark_expression.py:64
Method
test_sys_breakpoint_interception
(self, pytester: Pytester)
testing/test_debugging.py:1012
Method
test_sys_breakpointhook_configure_and_unconfigure
Test that sys.breakpointhook is set to the custom Pdb class once configured, test that hook is reset to system value once pytest has
testing/test_debugging.py:923
Method
test_sys_meta_path_munged
(self, pytester: Pytester)
testing/test_assertrewrite.py:1032
Method
test_sys_pycache_prefix_integration
Integration test for sys.pycache_prefix (#4730).
testing/test_assertrewrite.py:1758
Function
test_syspath_prepend
(mp: MonkeyPatch)
testing/test_monkeypatch.py:246
Function
test_syspath_prepend_double_undo
(mp: MonkeyPatch)
testing/test_monkeypatch.py:258
Function
test_syspath_prepend_with_namespace_packages
( pytester: Pytester, monkeypatch: MonkeyPatch )
testing/test_monkeypatch.py:423
Method
test_systemexit_does_not_bail_out
(self, pytester: Pytester)
testing/test_runner.py:385
Method
test_tb_crashline
(self, pytester: Pytester, option)
testing/test_terminal.py:1432
Method
test_tb_entry_str
(self)
testing/code/test_code.py:175
Method
test_tb_option
(self, pytester: Pytester, option)
testing/test_terminal.py:1405
Function
test_tbstyle_native_setup_error
(pytester: Pytester)
testing/test_terminal.py:1582
Function
test_tbstyle_short
(pytester: Pytester)
testing/test_terminal.py:1324
Function
test_teardown
(pytester: Pytester)
testing/test_unittest.py:169
Method
test_teardown_capturing
(self, pytester: Pytester)
testing/test_capture.py:220
Method
test_teardown_capturing_final
(self, pytester: Pytester)
testing/test_capture.py:245
Method
test_teardown_error
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:309
Method
test_teardown_exact_stack_empty
(self, pytester: Pytester)
testing/test_runner.py:34
Method
test_teardown_exception
(self, pytester: Pytester)
testing/python/fixtures.py:3702
Method
test_teardown_final_returncode
(self, pytester: Pytester)
testing/test_runner.py:249
Method
test_teardown_fixture_error
(self, pytester: Pytester)
testing/test_terminal.py:596
Method
test_teardown_fixture_error_and_test_failure
(self, pytester: Pytester)
testing/test_terminal.py:618
Function
test_teardown_issue1649
Are TestCase objects cleaned up? Often unittest TestCase objects set attributes that are large and expensive during setUp. The TestCase
testing/test_unittest.py:191
Function
test_teardown_logging
(pytester: Pytester)
testing/logging/test_reporting.py:148
Method
test_teardown_many
(self, pytester: Pytester, many_files)
testing/test_terminal.py:2191
Method
test_teardown_many_verbose
( self, pytester: Pytester, many_files, color_mapping )
testing/test_terminal.py:2197
Method
test_teardown_multiple_fail
(self, pytester: Pytester)
testing/test_runner.py:79
Method
test_teardown_multiple_one_fails
(self, pytester: Pytester)
testing/test_runner.py:56
Method
test_teardown_multiple_scopes_one_fails
(self, pytester: Pytester)
testing/test_runner.py:97
Method
test_teardown_simple
( self, pytester: Pytester, contest_with_teardown_fixture )
testing/test_terminal.py:2161
Method
test_teardown_with_test_also_failing
( self, pytester: Pytester, contest_with_teardown_fixture )
testing/test_terminal.py:2173
Method
test_teardowns
(self)
testing/example_scripts/unittest/test_unittest_asynctest.py:22
Method
test_teardowns
(self)
testing/example_scripts/unittest/test_unittest_asyncio.py:24
Function
test_tee_stdio_captures_and_live_prints
(pytester: Pytester)
testing/acceptance_test.py:1251
Function
test_terminal_no_summary_warnings_header_once
(pytester: Pytester)
testing/test_terminal.py:1683
Method
test_terminal_report_failedfirst
(self, pytester: Pytester)
testing/test_cacheprovider.py:475
Method
test_terminal_report_lastfailed
(self, pytester: Pytester)
testing/test_cacheprovider.py:423
Function
test_terminal_summary
(pytester: Pytester)
testing/test_terminal.py:1600
Function
test_terminal_summary_warnings_are_displayed
Test that warnings emitted during pytest_terminal_summary are displayed. (#1305).
testing/test_terminal.py:1621
Function
test_terminal_summary_warnings_header_once
(pytester: Pytester)
testing/test_terminal.py:1658
Function
test_terminal_width_COLUMNS
(monkeypatch: MonkeyPatch)
testing/io/test_terminalwriter.py:18
Function
test_terminalreporter_reportopt_addopts
(pytester: Pytester)
testing/test_terminal.py:1305
Function
test_terminalwriter_computes_width
(monkeypatch: MonkeyPatch)
testing/io/test_terminalwriter.py:31
Function
test_terminalwriter_dumb_term_no_markup
(monkeypatch: MonkeyPatch)
testing/io/test_terminalwriter.py:37
Function
test_terminalwriter_not_unicode
If the file doesn't support Unicode, the string is unicode-escaped (#7475).
testing/io/test_terminalwriter.py:53
Function
test_terminalwriter_width_bogus
(monkeypatch: MonkeyPatch)
testing/io/test_terminalwriter.py:24
Method
test_test_report
(self, pytester: Pytester, pytestconfig: Config)
testing/test_reports.py:422
Function
test_testcase_adderrorandfailure_defers
(pytester: Pytester, type: str)
testing/test_unittest.py:353
Function
test_testcase_custom_exception_info
(pytester: Pytester, type: str)
testing/test_unittest.py:377
Function
test_testcase_handles_init_exceptions
Regression test to make sure exceptions in the __init__ method are bubbled up correctly. See https://github.com/pytest-dev/pytest/issues/3788
testing/test_unittest.py:1093
Function
test_testcase_totally_incompatible_exception_info
(pytester: Pytester)
testing/test_unittest.py:421
Function
test_testdir_makefile_dot_prefixes_extension_silently
For backwards compat #8192
testing/test_legacypath.py:26
Function
test_testdir_makefile_ext_empty_string_makes_file
For backwards compat #8192
testing/test_legacypath.py:40
Function
test_testdir_makefile_ext_none_raises_type_error
For backwards compat #8192
testing/test_legacypath.py:34
Function
test_testdir_testtmproot
Check test_tmproot is a py.path attribute for backward compatibility.
testing/test_legacypath.py:21
Method
test_testpaths_ini
(self, pytester: Pytester, monkeypatch: MonkeyPatch)
testing/test_collection.py:243
Method
test_text
(self)
testing/test_capture.py:849
Method
test_text
(self)
testing/test_capture.py:871
Method
test_text_diff
(self)
testing/test_assertion.py:344
Method
test_text_skipping
(self)
testing/test_assertion.py:351
Method
test_text_skipping_verbose
(self)
testing/test_assertion.py:358
Function
test_this_is_ignored
()
testing/example_scripts/doctest/main_py/__main__.py:1
Function
test_timeout
Test option to dump tracebacks after a certain timeout. If faulthandler is disabled, no traceback will be dumped.
testing/test_faulthandler.py:80
Method
test_timestamp_in_xml
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:213
Method
test_timing_function
( self, pytester: Pytester, run_and_parse: RunAndParse, mock_timing )
testing/test_junitxml.py:228
Function
test_tmp_path_always_is_realpath
(pytester: Pytester, monkeypatch)
testing/test_tmpdir.py:121
Function
test_tmp_path_factory
(pytester: Pytester)
testing/test_tmpdir.py:155
Function
test_tmp_path_factory_create_directory_with_safe_permissions
Verify that pytest creates directories under /tmp with private permissions.
testing/test_tmpdir.py:443
Function
test_tmp_path_factory_fixes_up_world_readable_permissions
Verify that if a /tmp/pytest-of-foo directory already exists with world-readable permissions, it is fixed. pytest used to mkdir with such per
testing/test_tmpdir.py:459
Function
test_tmp_path_factory_handles_invalid_dir_characters
( tmp_path_factory: TempPathFactory, monkeypatch: MonkeyPatch )
testing/test_tmpdir.py:431
Function
test_tmp_path_fallback_tox_env
Test that tmp_path works even if environment variables required by getpass module are missing (#1010).
testing/test_tmpdir.py:170
Function
test_tmp_path_fallback_uid_not_found
Test that tmp_path works even if the current process's user id does not correspond to a valid user.
testing/test_tmpdir.py:196
Function
test_tmp_path_fixture
(pytester: Pytester)
testing/test_tmpdir.py:28
Function
test_tmp_path_too_long_on_parametrization
(pytester: Pytester)
testing/test_tmpdir.py:142
Function
test_tmpdir_always_is_realpath
(pytester: pytest.Pytester)
testing/test_legacypath.py:68
Function
test_tmpdir_equals_tmp_path
(tmpdir: LEGACY_PATH, tmp_path: Path)
testing/test_legacypath.py:64
Function
test_tmpdir_factory
( tmpdir_factory: TempdirFactory, tmp_path_factory: pytest.TempPathFactory, )
testing/test_legacypath.py:55
← previous
next →
4,201–4,300 of 4,602, ranked by callers