MCPcopy Create free account

hub / github.com/pytest-dev/pytest / functions

Functions4,602 in github.com/pytest-dev/pytest

Methodtest_capturing_error_recursive
(self)
testing/test_capture.py:1140
Methodtest_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
Methodtest_capturing_getfixturevalue
Test that asking for "capfd" and "capsys" using request.getfixturevalue in the same test is an error.
testing/test_capture.py:465
Methodtest_capturing_modify_sysouterr_in_between
(self)
testing/test_capture.py:1124
Methodtest_capturing_outerr
(self, pytester: Pytester)
testing/test_capture.py:265
Methodtest_capturing_readouterr
(self)
testing/test_capture.py:1091
Methodtest_capturing_readouterr_unicode
(self)
testing/test_capture.py:1110
Methodtest_capturing_reset_simple
(self)
testing/test_capture.py:1083
Functiontest_capturing_unicode
(pytester: Pytester, method: str)
testing/test_capture.py:101
Methodtest_chained_exceptions
Check serialization/deserialization of report objects containing chained exceptions (#5786)
testing/test_reports.py:275
Methodtest_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
Functiontest_change_level
(caplog)
testing/logging/test_fixture.py:16
Functiontest_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
Functiontest_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
Functiontest_change_testfile
(stepwise_pytester: Pytester)
testing/test_stepwise.py:168
Functiontest_chdir_double_undo
(mp: MonkeyPatch, tmp_path: Path)
testing/test_monkeypatch.py:287
Functiontest_chdir_undo
(mp: MonkeyPatch, tmp_path: Path)
testing/test_monkeypatch.py:280
Functiontest_chdir_with_path_local
(mp: MonkeyPatch, tmp_path: Path)
testing/test_monkeypatch.py:270
Functiontest_chdir_with_str
(mp: MonkeyPatch, tmp_path: Path)
testing/test_monkeypatch.py:275
Methodtest_check_callable
(self)
testing/test_recwarn.py:223
Methodtest_check_callable
(self)
testing/python/raises.py:10
Methodtest_check_collect_hashes
(self, pytester: Pytester)
testing/test_collection.py:678
Methodtest_check_equality
(self, pytester: Pytester)
testing/test_collection.py:36
Methodtest_check_equality
(self, pytester: Pytester)
testing/python/collect.py:724
Methodtest_check_filepath_consistency
( self, monkeypatch: MonkeyPatch, tmp_path: Path )
testing/test_pathlib.py:216
Methodtest_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
Methodtest_class_and_method
(self, pytester: Pytester)
testing/python/integration.py:358
Methodtest_class_fixture_self_instance
Check that plugin classes which implement fixtures receive the plugin instance as self (see #2270).
testing/python/fixtures.py:4253
Functiontest_class_from_parent
Ensure Class.from_parent can forward custom arguments to the constructor.
testing/test_collection.py:1388
Methodtest_class_function_parametrization_finalization
( self, pytester: Pytester )
testing/python/fixtures.py:2044
Functiontest_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
Functiontest_class_method_containing_test_issue1558
(pytester: Pytester)
testing/test_unittest.py:1013
Methodtest_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
Methodtest_class_ordering
(self, pytester: Pytester)
testing/python/fixtures.py:2700
Methodtest_class_reportinfo
(self, pytester: Pytester)
testing/python/collect.py:1163
Methodtest_class_scope_parametrization_ordering
#396
testing/python/fixtures.py:3051
Methodtest_class_scope_with_normal_tests
(self, pytester: Pytester)
testing/python/fixtures.py:2913
Functiontest_class_setup
(pytester: Pytester)
testing/test_runner_xunit.py:80
Functiontest_class_setup_failure_no_teardown
(pytester: Pytester)
testing/test_runner_xunit.py:106
Methodtest_class_subclassobject
(self, pytester: Pytester)
testing/python/collect.py:178
Methodtest_class_with_init_warning
(self, pytester: Pytester)
testing/python/collect.py:146
Methodtest_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
Methodtest_class_with_new_warning
(self, pytester: Pytester)
testing/python/collect.py:162
Methodtest_classname_instance
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:449
Methodtest_classname_nested_dir
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:469
Functiontest_clean_up
Test that the pythonpath plugin cleans up after itself.
testing/test_pythonpath.py:83
Functiontest_cleanup_functions
Ensure functions added with addCleanup are always called after each test ends (#6947)
testing/test_unittest.py:920
Methodtest_cleanup_ignores_symlink
(self, tmp_path)
testing/test_tmpdir.py:304
Methodtest_cleanup_keep
(self, tmp_path)
testing/test_tmpdir.py:287
Methodtest_cleanup_lock_create
(self, tmp_path)
testing/test_tmpdir.py:247
Methodtest_cleanup_locked
(self, tmp_path)
testing/test_tmpdir.py:292
Functiontest_clear
(caplog)
testing/logging/test_fixture.py:144
Functiontest_close_and_capture_again
(pytester: Pytester)
testing/test_capture.py:1353
Functiontest_cmdline_processargs_simple
(pytester: Pytester)
testing/test_config.py:1130
Methodtest_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
Methodtest_cmdline_python_package
(self, pytester: Pytester, monkeypatch)
testing/acceptance_test.py:622
Methodtest_cmdline_python_package_not_exists
(self, pytester: Pytester)
testing/acceptance_test.py:789
Methodtest_cmdline_python_package_symlink
--pyargs with packages with path containing symlink can have conftest.py in their package (#2985)
testing/acceptance_test.py:730
Functiontest_code_from_func
()
testing/code/test_code.py:76
Functiontest_code_from_function_with_class
()
testing/code/test_code.py:31
Functiontest_code_fullsource
()
testing/code/test_code.py:43
Functiontest_code_getargs
()
testing/code/test_code.py:92
Functiontest_code_gives_back_name_for_not_existing_file
()
testing/code/test_code.py:22
Functiontest_code_highlight
(has_markup, code_highlight, expected, color_mapping)
testing/io/test_terminalwriter.py:280
Methodtest_code_highlight_continuation
( self, pytester: Pytester, color_mapping )
testing/test_terminal.py:2387
Methodtest_code_highlight_custom_theme
( self, pytester: Pytester, color_mapping, monkeypatch: MonkeyPatch )
testing/test_terminal.py:2410
Methodtest_code_highlight_invalid_theme
( self, pytester: Pytester, color_mapping, monkeypatch: MonkeyPatch )
testing/test_terminal.py:2432
Methodtest_code_highlight_invalid_theme_mode
( self, pytester: Pytester, color_mapping, monkeypatch: MonkeyPatch )
testing/test_terminal.py:2448
Methodtest_code_highlight_simple
(self, pytester: Pytester, color_mapping)
testing/test_terminal.py:2369
Functiontest_code_of_object_instance_with_call
()
testing/code/test_source.py:379
Functiontest_code_source
()
testing/code/test_code.py:49
Functiontest_codepath_Queue_example
()
testing/code/test_excinfo.py:395
Functiontest_collect_capturing
(pytester: Pytester)
testing/test_capture.py:129
Methodtest_collect_custom_items
(self, pytester: Pytester)
testing/python/fixtures.py:1754
Methodtest_collect_custom_nodes_multi_id
(self, pytester: Pytester)
testing/test_collection.py:536
Methodtest_collect_duplicate_names
--import-mode=importlib can import modules with same names that are not in packages.
testing/test_collection.py:1405
Methodtest_collect_error
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:752
Functiontest_collect_error_with_fulltrace
(pytester: Pytester)
testing/python/collect.py:1344
Methodtest_collect_fail
(self, pytester: Pytester, option)
testing/test_terminal.py:1358
Functiontest_collect_handles_raising_on_dunder_class
Handle proxy classes like Django's LazySettings that might raise on ``isinstance`` (#4266).
testing/test_collection.py:1115
Functiontest_collect_init_tests
Check that we collect files from __init__.py files when they patch the 'python_files' (#3773)
testing/test_collection.py:1034
Functiontest_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
Methodtest_collect_module_empty
(self, pytester: Pytester)
testing/test_doctest.py:41
Methodtest_collect_module_single_modulelevel_doctest
(self, pytester: Pytester)
testing/test_doctest.py:47
Methodtest_collect_module_two_doctest_no_modulelevel
( self, pytester: Pytester, filename: str, )
testing/test_doctest.py:72
Methodtest_collect_module_two_doctest_one_modulelevel
(self, pytester: Pytester)
testing/test_doctest.py:55
Methodtest_collect_only_summary_status
Custom status depending on test selection using -k or -m. #7701.
testing/test_terminal.py:530
Methodtest_collect_only_with_various_situations
(self, pytester: Pytester)
testing/test_session.py:206
Functiontest_collect_pkg_init_and_file_in_args
(pytester: Pytester)
testing/test_collection.py:1268
Functiontest_collect_pkg_init_only
(pytester: Pytester)
testing/test_collection.py:1297
Methodtest_collect_protocol_method
(self, pytester: Pytester)
testing/test_collection.py:518
Methodtest_collect_protocol_single_function
(self, pytester: Pytester)
testing/test_collection.py:495
Functiontest_collect_pyargs_with_testpaths
( pytester: Pytester, monkeypatch: MonkeyPatch )
testing/test_collection.py:1178
Functiontest_collect_pytest_prefix_bug
Ensure we collect only actual functions from conftest files (#3775)
testing/test_config.py:1311
Functiontest_collect_pytest_prefix_bug_integration
Integration test for issue #3775
testing/test_config.py:1304
Methodtest_collect_report
(self, pytester: Pytester, pytestconfig: Config)
testing/test_reports.py:444
Methodtest_collect_report_postprocessing
(self, pytester: Pytester)
testing/test_collection.py:318
Methodtest_collect_result
(self, pytester: Pytester)
testing/test_runner.py:436
Methodtest_collect_single_item
Use singular 'item' when reporting a single test item
testing/test_terminal.py:304
Functiontest_collect_sub_with_symlinks
Collection works with symlinked files and broken symlinks
testing/test_collection.py:1310
← previousnext →2,301–2,400 of 4,602, ranked by callers