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_capturing_error_recursive
(self)
testing/test_capture.py:1140
Method
test_capturing_error_recursive
r"""For TeeStdCapture since we passthrough stderr/stdout, cap1 should get all output, while cap2 should only get "cap2\n".
testing/test_capture.py:1184
Method
test_capturing_getfixturevalue
Test that asking for "capfd" and "capsys" using request.getfixturevalue in the same test is an error.
testing/test_capture.py:465
Method
test_capturing_modify_sysouterr_in_between
(self)
testing/test_capture.py:1124
Method
test_capturing_outerr
(self, pytester: Pytester)
testing/test_capture.py:265
Method
test_capturing_readouterr
(self)
testing/test_capture.py:1091
Method
test_capturing_readouterr_unicode
(self)
testing/test_capture.py:1110
Method
test_capturing_reset_simple
(self)
testing/test_capture.py:1083
Function
test_capturing_unicode
(pytester: Pytester, method: str)
testing/test_capture.py:101
Method
test_chained_exceptions
Check serialization/deserialization of report objects containing chained exceptions (#5786)
testing/test_reports.py:275
Method
test_chained_exceptions_no_reprcrash
Regression test for tracebacks without a reprcrash (#5971) This happens notably on exceptions raised by multiprocess.pool: the exception tran
testing/test_reports.py:350
Function
test_change_level
(caplog)
testing/logging/test_fixture.py:16
Function
test_change_level_undo
Ensure that 'set_level' is undone after the end of the test. Tests the logging output themselves (affacted both by logger and handler levels).
testing/logging/test_fixture.py:31
Function
test_change_level_undos_handler_level
Ensure that 'set_level' is undone after the end of the test (handler). Issue #7569. Tests the handler level specifically.
testing/logging/test_fixture.py:57
Function
test_change_testfile
(stepwise_pytester: Pytester)
testing/test_stepwise.py:168
Function
test_chdir_double_undo
(mp: MonkeyPatch, tmp_path: Path)
testing/test_monkeypatch.py:287
Function
test_chdir_undo
(mp: MonkeyPatch, tmp_path: Path)
testing/test_monkeypatch.py:280
Function
test_chdir_with_path_local
(mp: MonkeyPatch, tmp_path: Path)
testing/test_monkeypatch.py:270
Function
test_chdir_with_str
(mp: MonkeyPatch, tmp_path: Path)
testing/test_monkeypatch.py:275
Method
test_check_callable
(self)
testing/test_recwarn.py:223
Method
test_check_callable
(self)
testing/python/raises.py:10
Method
test_check_collect_hashes
(self, pytester: Pytester)
testing/test_collection.py:678
Method
test_check_equality
(self, pytester: Pytester)
testing/test_collection.py:36
Method
test_check_equality
(self, pytester: Pytester)
testing/python/collect.py:724
Method
test_check_filepath_consistency
( self, monkeypatch: MonkeyPatch, tmp_path: Path )
testing/test_pathlib.py:216
Method
test_class_and_functions_discovery_using_glob
Test that Python_classes and Python_functions config options work as prefixes and glob-like patterns (#600).
testing/test_collection.py:733
Method
test_class_and_method
(self, pytester: Pytester)
testing/python/integration.py:358
Method
test_class_fixture_self_instance
Check that plugin classes which implement fixtures receive the plugin instance as self (see #2270).
testing/python/fixtures.py:4253
Function
test_class_from_parent
Ensure Class.from_parent can forward custom arguments to the constructor.
testing/test_collection.py:1388
Method
test_class_function_parametrization_finalization
( self, pytester: Pytester )
testing/python/fixtures.py:2044
Function
test_class_injection_does_not_break_collection
Tests whether injection during collection time will terminate testing. In this case the error should not occur if the TestClass itself is mod
testing/python/collect.py:1307
Function
test_class_method_containing_test_issue1558
(pytester: Pytester)
testing/test_unittest.py:1013
Method
test_class_or_function_idval
Unit test for the expected behavior to obtain ids for parametrized values that are classes or functions: their __name__.
testing/python/metafunc.py:354
Method
test_class_ordering
(self, pytester: Pytester)
testing/python/fixtures.py:2700
Method
test_class_reportinfo
(self, pytester: Pytester)
testing/python/collect.py:1163
Method
test_class_scope_parametrization_ordering
#396
testing/python/fixtures.py:3051
Method
test_class_scope_with_normal_tests
(self, pytester: Pytester)
testing/python/fixtures.py:2913
Function
test_class_setup
(pytester: Pytester)
testing/test_runner_xunit.py:80
Function
test_class_setup_failure_no_teardown
(pytester: Pytester)
testing/test_runner_xunit.py:106
Method
test_class_subclassobject
(self, pytester: Pytester)
testing/python/collect.py:178
Method
test_class_with_init_warning
(self, pytester: Pytester)
testing/python/collect.py:146
Method
test_class_with_nasty_getattr
Make sure we handle classes with a custom nasty __getattr__ right. With a custom __getattr__ which e.g. returns a function (like with a
testing/python/integration.py:396
Method
test_class_with_new_warning
(self, pytester: Pytester)
testing/python/collect.py:162
Method
test_classname_instance
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:449
Method
test_classname_nested_dir
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:469
Function
test_clean_up
Test that the pythonpath plugin cleans up after itself.
testing/test_pythonpath.py:83
Function
test_cleanup_functions
Ensure functions added with addCleanup are always called after each test ends (#6947)
testing/test_unittest.py:920
Method
test_cleanup_ignores_symlink
(self, tmp_path)
testing/test_tmpdir.py:304
Method
test_cleanup_keep
(self, tmp_path)
testing/test_tmpdir.py:287
Method
test_cleanup_lock_create
(self, tmp_path)
testing/test_tmpdir.py:247
Method
test_cleanup_locked
(self, tmp_path)
testing/test_tmpdir.py:292
Function
test_clear
(caplog)
testing/logging/test_fixture.py:144
Function
test_close_and_capture_again
(pytester: Pytester)
testing/test_capture.py:1353
Function
test_cmdline_processargs_simple
(pytester: Pytester)
testing/test_config.py:1130
Method
test_cmdline_python_namespace_package
Test --pyargs option with namespace packages (#1567). Ref: https://packaging.python.org/guides/packaging-namespace-packages/
testing/acceptance_test.py:651
Method
test_cmdline_python_package
(self, pytester: Pytester, monkeypatch)
testing/acceptance_test.py:622
Method
test_cmdline_python_package_not_exists
(self, pytester: Pytester)
testing/acceptance_test.py:789
Method
test_cmdline_python_package_symlink
--pyargs with packages with path containing symlink can have conftest.py in their package (#2985)
testing/acceptance_test.py:730
Function
test_code_from_func
()
testing/code/test_code.py:76
Function
test_code_from_function_with_class
()
testing/code/test_code.py:31
Function
test_code_fullsource
()
testing/code/test_code.py:43
Function
test_code_getargs
()
testing/code/test_code.py:92
Function
test_code_gives_back_name_for_not_existing_file
()
testing/code/test_code.py:22
Function
test_code_highlight
(has_markup, code_highlight, expected, color_mapping)
testing/io/test_terminalwriter.py:280
Method
test_code_highlight_continuation
( self, pytester: Pytester, color_mapping )
testing/test_terminal.py:2387
Method
test_code_highlight_custom_theme
( self, pytester: Pytester, color_mapping, monkeypatch: MonkeyPatch )
testing/test_terminal.py:2410
Method
test_code_highlight_invalid_theme
( self, pytester: Pytester, color_mapping, monkeypatch: MonkeyPatch )
testing/test_terminal.py:2432
Method
test_code_highlight_invalid_theme_mode
( self, pytester: Pytester, color_mapping, monkeypatch: MonkeyPatch )
testing/test_terminal.py:2448
Method
test_code_highlight_simple
(self, pytester: Pytester, color_mapping)
testing/test_terminal.py:2369
Function
test_code_of_object_instance_with_call
()
testing/code/test_source.py:379
Function
test_code_source
()
testing/code/test_code.py:49
Function
test_codepath_Queue_example
()
testing/code/test_excinfo.py:395
Function
test_collect_capturing
(pytester: Pytester)
testing/test_capture.py:129
Method
test_collect_custom_items
(self, pytester: Pytester)
testing/python/fixtures.py:1754
Method
test_collect_custom_nodes_multi_id
(self, pytester: Pytester)
testing/test_collection.py:536
Method
test_collect_duplicate_names
--import-mode=importlib can import modules with same names that are not in packages.
testing/test_collection.py:1405
Method
test_collect_error
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:752
Function
test_collect_error_with_fulltrace
(pytester: Pytester)
testing/python/collect.py:1344
Method
test_collect_fail
(self, pytester: Pytester, option)
testing/test_terminal.py:1358
Function
test_collect_handles_raising_on_dunder_class
Handle proxy classes like Django's LazySettings that might raise on ``isinstance`` (#4266).
testing/test_collection.py:1115
Function
test_collect_init_tests
Check that we collect files from __init__.py files when they patch the 'python_files' (#3773)
testing/test_collection.py:1034
Function
test_collect_invalid_signature_message
Check that we issue a proper message when we can't determine the signature of a test function (#4026).
testing/test_collection.py:1095
Method
test_collect_module_empty
(self, pytester: Pytester)
testing/test_doctest.py:41
Method
test_collect_module_single_modulelevel_doctest
(self, pytester: Pytester)
testing/test_doctest.py:47
Method
test_collect_module_two_doctest_no_modulelevel
( self, pytester: Pytester, filename: str, )
testing/test_doctest.py:72
Method
test_collect_module_two_doctest_one_modulelevel
(self, pytester: Pytester)
testing/test_doctest.py:55
Method
test_collect_only_summary_status
Custom status depending on test selection using -k or -m. #7701.
testing/test_terminal.py:530
Method
test_collect_only_with_various_situations
(self, pytester: Pytester)
testing/test_session.py:206
Function
test_collect_pkg_init_and_file_in_args
(pytester: Pytester)
testing/test_collection.py:1268
Function
test_collect_pkg_init_only
(pytester: Pytester)
testing/test_collection.py:1297
Method
test_collect_protocol_method
(self, pytester: Pytester)
testing/test_collection.py:518
Method
test_collect_protocol_single_function
(self, pytester: Pytester)
testing/test_collection.py:495
Function
test_collect_pyargs_with_testpaths
( pytester: Pytester, monkeypatch: MonkeyPatch )
testing/test_collection.py:1178
Function
test_collect_pytest_prefix_bug
Ensure we collect only actual functions from conftest files (#3775)
testing/test_config.py:1311
Function
test_collect_pytest_prefix_bug_integration
Integration test for issue #3775
testing/test_config.py:1304
Method
test_collect_report
(self, pytester: Pytester, pytestconfig: Config)
testing/test_reports.py:444
Method
test_collect_report_postprocessing
(self, pytester: Pytester)
testing/test_collection.py:318
Method
test_collect_result
(self, pytester: Pytester)
testing/test_runner.py:436
Method
test_collect_single_item
Use singular 'item' when reporting a single test item
testing/test_terminal.py:304
Function
test_collect_sub_with_symlinks
Collection works with symlinked files and broken symlinks
testing/test_collection.py:1310
← previous
next →
2,301–2,400 of 4,602, ranked by callers