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_pdb_teardown_skipped
With --pdb, setUp and tearDown should not be called for skipped tests.
testing/test_unittest.py:1244
Method
test_pdb_unittest_postmortem
(self, pytester: Pytester)
testing/test_debugging.py:166
Method
test_pdb_unittest_skip
Test for issue #2137
testing/test_debugging.py:186
Method
test_pdb_used_in_generate_tests
(self, pytester: Pytester)
testing/test_debugging.py:765
Method
test_pdb_used_outside_test
(self, pytester: Pytester)
testing/test_debugging.py:751
Method
test_pdb_validate_usepdb_cls
(self)
testing/test_debugging.py:863
Method
test_pdb_with_caplog_on_pdb_invocation
(self, pytester: Pytester)
testing/test_debugging.py:446
Method
test_pdb_with_injected_do_debug
Simulates pdbpp, which injects Pdb into do_debug, and uses self.__class__ in do_continue.
testing/test_debugging.py:567
Method
test_pdb_without_capture
(self, pytester: Pytester)
testing/test_debugging.py:642
Function
test_pdb_wrapper_class_is_reused
(pytester: Pytester)
testing/test_debugging.py:1300
Function
test_pdbcls_via_local_module
It should be imported in pytest_configure or later only.
testing/test_debugging.py:1238
Function
test_pformat_dispatch
()
testing/io/test_saferepr.py:161
Method
test_pkgfile
Verify nesting when a module is within a package. The parent chain should match: Module<x.py> -> Package<subdir> -> Session. Sessi
testing/test_collection.py:654
Method
test_place_initial_imports
(self)
testing/test_assertrewrite.py:72
Function
test_plain_unittest_does_not_support_async
Async functions in plain unittest.TestCase subclasses are not supported without plugins. This test exists here to avoid introducing this support
testing/test_unittest.py:1294
Function
test_plugin_already_exists
(pytester: Pytester)
testing/test_session.py:259
Function
test_plugin_loading_order
Test order of plugin loading with `-p`.
testing/test_config.py:1104
Function
test_plugin_nameversion
(input, expected)
testing/test_terminal.py:75
Function
test_plugin_preparse_prevents_setuptools_loading
( pytester: Pytester, monkeypatch: MonkeyPatch, block_it: bool )
testing/test_config.py:1021
Method
test_plugin_prevent_register
(self, pytestpm: PytestPluginManager)
testing/test_pluginmanager.py:386
Method
test_plugin_prevent_register_stepwise_on_cacheprovider_unregister
From PR #4304: The only way to unregister a module is documented at the end of https://docs.pytest.org/en/stable/how-to/plugins.html.
testing/test_pluginmanager.py:404
Method
test_plugin_prevent_register_unregistered_alredy_registered
( self, pytestpm: PytestPluginManager )
testing/test_pluginmanager.py:394
Method
test_plugin_skip
(self, pytester: Pytester, monkeypatch: MonkeyPatch)
testing/test_pluginmanager.py:274
Function
test_plugin_specify
(pytester: Pytester)
testing/test_session.py:251
Method
test_pluginmanager_ENV_startup
( self, pytester: Pytester, monkeypatch: MonkeyPatch )
testing/test_pluginmanager.py:307
Method
test_plugins_given_as_strings
Test that str values passed to main() as `plugins` arg are interpreted as module names to be imported and registered (#855).
testing/acceptance_test.py:462
Function
test_popen_default_stdin_stderr_and_stdin_None
(pytester: Pytester)
testing/test_pytester.py:688
Function
test_popen_stdin_bytes
(pytester: Pytester)
testing/test_pytester.py:675
Function
test_popen_stdin_pipe
(pytester: Pytester)
testing/test_pytester.py:661
Method
test_preparse_args
(self, pytestpm: PytestPluginManager)
testing/test_pluginmanager.py:369
Function
test_preparse_ordering_with_setuptools
( pytester: Pytester, monkeypatch: MonkeyPatch )
testing/test_config.py:933
Method
test_preserve_container
(self, monkeypatch: MonkeyPatch)
testing/test_pytester.py:366
Method
test_preserve_container
(self, monkeypatch: MonkeyPatch, path_type)
testing/test_pytester.py:409
Function
test_preserve_keys_order
Ensure keys order is preserved when saving dicts (#9205).
testing/test_cacheprovider.py:1213
Method
test_preserve_modules
(self, monkeypatch: MonkeyPatch)
testing/test_pytester.py:348
Method
test_print_unicode_value
Test case for issue 3583: Printing Unicode in doctest under Python 2.7 doesn't work
testing/test_doctest.py:765
Function
test_private_is_deprecated
()
testing/deprecated_test.py:131
Function
test_publish
()
testing/plugins_integration/bdd_wallet.py:10
Function
test_py36_windowsconsoleio_workaround_non_standard_streams
Ensure _py36_windowsconsoleio_workaround function works with objects that do not implement the full ``io``-based stream protocol, for example
testing/test_capture.py:1436
Method
test_pyargs_filename_looks_like_module
(self, pytester: Pytester)
testing/acceptance_test.py:616
Method
test_pyargs_importerror
(self, pytester: Pytester, monkeypatch)
testing/acceptance_test.py:589
Method
test_pyargs_only_imported_once
(self, pytester: Pytester)
testing/acceptance_test.py:599
Method
test_pyc_vs_pyo
(self, pytester: Pytester, monkeypatch)
testing/test_assertrewrite.py:905
Method
test_pycache_is_a_file
(self, pytester: Pytester)
testing/test_assertrewrite.py:756
Method
test_pycache_is_readonly
(self, pytester: Pytester)
testing/test_assertrewrite.py:765
Method
test_pydoc
(self, pytester: Pytester)
testing/acceptance_test.py:516
Method
test_pyfunc_call
(self, pytester: Pytester)
testing/python/collect.py:542
Method
test_pypath
Dotted name and parts.
testing/test_main.py:154
Method
test_pyproject_toml
(self, pytester: Pytester)
testing/test_config.py:131
Function
test_pytest_addopts_before_pytester
(request, monkeypatch: MonkeyPatch)
testing/test_pytester.py:620
Method
test_pytest_assertrepr_compare_called
(self, pytester: Pytester)
testing/test_assertion.py:300
Function
test_pytest_assertrepr_compare_integration
(pytester: Pytester)
testing/test_assertion.py:1286
Function
test_pytest_cmdline_main
(pytester: Pytester)
testing/test_runner.py:780
Method
test_pytest_collect_file
(self, pytester: Pytester)
testing/test_collection.py:275
Method
test_pytest_collect_file_from_sister_dir
(self, pytester: Pytester)
testing/test_collection.py:437
Function
test_pytest_collect_module_deprecated
(attribute)
testing/deprecated_test.py:16
Function
test_pytest_configure_warning
Issue 5115.
testing/test_warnings.py:638
Method
test_pytest_custom_cfg_unsupported
(self, pytester: Pytester)
testing/test_config.py:1879
Function
test_pytest_entry_points_are_identical
()
testing/test_entry_points.py:4
Method
test_pytest_exists_in_namespace_all
(self, attr: str)
testing/test_mark.py:18
Function
test_pytest_exit
()
testing/test_runner.py:550
Function
test_pytest_exit_msg
(pytester: Pytester)
testing/test_runner.py:563
Function
test_pytest_exit_returncode
(pytester: Pytester)
testing/test_runner.py:586
Function
test_pytest_fail
()
testing/test_runner.py:556
Function
test_pytest_fail_notrace_collection
Test pytest.fail(..., pytrace=False) does not show tracebacks during collection.
testing/test_runner.py:633
Function
test_pytest_fail_notrace_non_ascii
Fix pytest.fail with pytrace=False with non-ascii characters (#1178). This tests with native and unicode strings containing non-ascii chars.
testing/test_runner.py:648
Function
test_pytest_fail_notrace_runtest
Test pytest.fail(..., pytrace=False) does not show tracebacks during test run.
testing/test_runner.py:617
Function
test_pytest_fixture_setup_and_post_finalizer_hook
(pytester: Pytester)
testing/python/fixtures.py:3907
Method
test_pytest_fs_collect_hooks_are_seen
(self, pytester: Pytester)
testing/test_collection.py:421
Method
test_pytest_ini
[pytest] section in pytest.ini files is read correctly
testing/test_findpaths.py:18
Method
test_pytest_make_parametrize_id
(self, pytester: Pytester)
testing/python/metafunc.py:1816
Method
test_pytest_make_parametrize_id_with_argname
(self, pytester: Pytester)
testing/python/metafunc.py:1835
Method
test_pytest_mark_name_starts_with_underscore
(self)
testing/test_mark.py:41
Method
test_pytest_mark_notcallable
(self)
testing/test_mark.py:22
Function
test_pytest_no_tests_collected_exit_status
(pytester: Pytester)
testing/test_runner.py:666
Function
test_pytest_param_id_allows_none_or_string
(s)
testing/test_mark.py:1112
Function
test_pytest_param_id_requires_string
()
testing/test_mark.py:1104
Function
test_pytest_plugins_as_module
Do not raise an error if pytest_plugins attribute is a module (#3899)
testing/acceptance_test.py:993
Method
test_pytest_plugins_in_non_top_level_conftest_unsupported
( self, pytester: Pytester )
testing/test_config.py:1892
Method
test_pytest_plugins_in_non_top_level_conftest_unsupported_no_false_positives
( self, pytester: Pytester )
testing/test_config.py:1967
Method
test_pytest_plugins_in_non_top_level_conftest_unsupported_no_top_level_conftest
( self, pytester: Pytester )
testing/test_config.py:1941
Method
test_pytest_plugins_in_non_top_level_conftest_unsupported_pyargs
When using --pyargs, do not emit the warning about non-top-level conftest warnings (#4039, #4044)
testing/test_config.py:1914
Method
test_pytest_plugins_rewrite
(self, pytester: Pytester, mode)
testing/test_assertion.py:98
Method
test_pytest_plugins_rewrite_module_names
Test that pluginmanager correct marks pytest_plugins variables for assertion rewriting if they are defined as plain strings or list of
testing/test_assertion.py:127
Method
test_pytest_plugins_rewrite_module_names_correctly
Test that we match files correctly when they are marked for rewriting (#2939).
testing/test_assertion.py:153
Method
test_pytest_pycollect_makeitem
(self, pytester: Pytester)
testing/python/collect.py:882
Method
test_pytest_pycollect_module
(self, pytester: Pytester)
testing/python/collect.py:806
Method
test_pytest_report_header
(self, pytester: Pytester, option)
testing/test_terminal.py:1453
Method
test_pytest_setup_cfg_unsupported
(self, pytester: Pytester)
testing/test_config.py:1868
Function
test_pytest_warnings_repr_integration_test
Small integration test to ensure our small hack of setting the __module__ attribute of our warnings actually works (#5452).
testing/test_warning_types.py:24
Function
test_pytestconfig_is_session_scoped
()
testing/python/integration.py:336
Function
test_pytester_assert_outcomes_warnings
(pytester: Pytester)
testing/test_pytester.py:827
Function
test_pytester_makefile_dot_prefixes_extension_with_warning
( pytester: Pytester, )
testing/test_pytester.py:816
Function
test_pytester_outcomes_deselected
(pytester: Pytester)
testing/test_pytester.py:842
Function
test_pytester_outcomes_with_multiple_errors
(pytester: Pytester)
testing/test_pytester.py:759
Function
test_pytester_run_no_timeout
(pytester: Pytester)
testing/test_pytester.py:455
Function
test_pytester_run_timeout_expires
(pytester: Pytester)
testing/test_pytester.py:474
Function
test_pytester_run_with_timeout
(pytester: Pytester)
testing/test_pytester.py:460
Function
test_pytester_runs_with_plugin
(pytester: Pytester)
testing/test_pytester.py:83
Function
test_pytester_subprocess
(pytester: Pytester)
testing/test_pytester.py:424
← previous
next →
3,701–3,800 of 4,602, ranked by callers