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_attrs_recursive_verbose
(self)
testing/test_assertion.py:941
Method
test_attrs_verbose
(self)
testing/test_assertion.py:960
Method
test_attrs_with_attribute_comparison_off
(self)
testing/test_assertion.py:975
Method
test_auto_use_request_attributes
Check that all attributes of a request in an autouse fixture behave as expected when requested for a doctest item.
testing/test_doctest.py:1320
Method
test_autouse_conftest_mid_directory
(self, pytester: Pytester)
testing/python/fixtures.py:1935
Method
test_autouse_fixture
( self, pytester: Pytester, recwarn )
testing/python/integration.py:45
Method
test_autouse_fixture_plugin
(self, pytester: Pytester)
testing/python/fixtures.py:561
Method
test_autouse_in_conftests
(self, pytester: Pytester)
testing/python/fixtures.py:1887
Method
test_autouse_in_module_and_two_classes
(self, pytester: Pytester)
testing/python/fixtures.py:1908
Method
test_avoid_double_stdout
( self, pytester: Pytester, run_and_parse: RunAndParse, junit_logging: str )
testing/test_junitxml.py:906
Method
test_b
(self, path1: Path)
testing/test_pathlib.py:189
Function
test_backslash_not_treated_specially
r"""When generating nodeids, if the source name contains special characters like a newline, they are escaped into two characters like \n. Therefor
testing/test_mark_expression.py:69
Method
test_bad_getsource
(self)
testing/code/test_code.py:145
Function
test_bar
(i)
testing/plugins_integration/simple_integration.py:9
Function
test_bar
(i)
testing/example_scripts/warnings/test_group_warnings_by_message.py:20
Function
test_bar
(i)
testing/example_scripts/warnings/test_group_warnings_by_message_summary/test_1.py:20
Function
test_baseexception
Test saferepr() with BaseExceptions, which includes pytest outcomes.
testing/io/test_saferepr.py:67
Function
test_basetemp_with_read_only_files
Integration test for #5524
testing/test_tmpdir.py:410
Function
test_basic
(expr: str, expected: bool)
testing/test_mark_expression.py:48
Method
test_basic
Ensure we avoid calling PathFinder.find_spec when we know for sure a certain module will not be rewritten to optimize assertion rewri
testing/test_assertrewrite.py:1409
Method
test_basic_behavior
(self, _sys_snapshot)
testing/test_config.py:837
Method
test_basic_init
(self, basedir: Path)
testing/test_conftest.py:57
Function
test_basic_objects
(python1, python2, obj)
doc/en/example/multipython.py:70
Method
test_basic_testitem_events
(self, pytester: Pytester)
testing/test_session.py:8
Function
test_bestrelpath
()
testing/test_pathlib.py:404
Method
test_better_reporting_on_conftest_load_failure
Show a user-friendly traceback on conftest import failures (#486, #3332)
testing/acceptance_test.py:196
Function
test_big_repr
()
testing/io/test_saferepr.py:141
Method
test_binary_op
(self)
testing/test_assertrewrite.py:480
Method
test_blocked_plugin_can_be_used
(self, pytestpm: PytestPluginManager)
testing/test_pluginmanager.py:422
Method
test_body
(self)
testing/code/test_source.py:539
Method
test_body
(self)
testing/code/test_source.py:565
Method
test_body
(self)
testing/code/test_source.py:585
Method
test_bool
(self)
testing/python/approx.py:322
Method
test_boolop
(self)
testing/test_assertrewrite.py:364
Method
test_boolop_percent
(self)
testing/test_assertrewrite.py:493
Function
test_broken_getattribute
saferepr() can create proper representations of classes with broken __getattribute__ (#7145)
testing/io/test_saferepr.py:167
Method
test_broken_repr
(self, pytester: Pytester)
testing/test_session.py:103
Method
test_broken_repr_with_showlocals_verbose
(self, pytester: Pytester)
testing/test_session.py:135
Function
test_buggy_builtin_repr
()
testing/io/test_saferepr.py:130
Method
test_bytes_diff_normal
Check special handling for bytes diff (#5260)
testing/test_assertion.py:372
Method
test_bytes_diff_verbose
Check special handling for bytes diff (#5260)
testing/test_assertion.py:382
Method
test_bytes_idval
Unit test for the expected behavior to obtain ids for parametrized bytes values: bytes objects are always escaped using "binary escape".
testing/python/metafunc.py:342
Method
test_bytes_literal
Test that doctests which output bytes fail in Python 3 when the ALLOW_BYTES option is not used. (#1287).
testing/test_doctest.py:928
Method
test_c
(self, path1: Path)
testing/test_pathlib.py:195
Method
test_cache_cumulative
Test workflow where user fixes errors gradually file by file using --lf.
testing/test_cacheprovider.py:678
Method
test_cache_failure_warns
( self, pytester: Pytester, monkeypatch: MonkeyPatch, unwritable_cache_dir: Pa
testing/test_cacheprovider.py:72
Function
test_cache_makedir
(cache: pytest.Cache)
testing/test_legacypath.py:84
Function
test_cache_reportheader
(env, pytester: Pytester, monkeypatch: MonkeyPatch)
testing/test_cacheprovider.py:180
Function
test_cache_reportheader_external_abspath
( pytester: Pytester, tmp_path_factory: TempPathFactory )
testing/test_cacheprovider.py:192
Function
test_cache_show
(pytester: Pytester)
testing/test_cacheprovider.py:212
Method
test_cache_writefail_cachfile_silent
(self, pytester: Pytester)
testing/test_cacheprovider.py:39
Method
test_cache_writefail_permissions
( self, unwritable_cache_dir: Path, pytester: Pytester )
testing/test_cacheprovider.py:62
Function
test_cached_property
()
testing/test_compat.py:194
Method
test_cached_pyc_includes_pytest_version
Avoid stale caches (#1671)
testing/test_assertrewrite.py:885
Function
test_cachedir_tag
Ensure we automatically create CACHEDIR.TAG file in the pytest_cache directory (#4278).
testing/test_cacheprovider.py:1242
Method
test_cachefuncarg
(self, pytester: Pytester)
testing/test_cacheprovider.py:114
Method
test_cafd_preserves_newlines
(self, capfd, nl)
testing/test_capture.py:530
Method
test_call
(self)
testing/test_assertrewrite.py:530
Method
test_call_failure_teardown_error
( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:334
Function
test_call_fixture_function_error
Check if an error is raised if a fixture function is called directly (#4545)
testing/python/fixtures.py:4286
Method
test_call_from_fixture
(self, pytester: Pytester)
testing/python/fixtures.py:3758
Method
test_call_from_test
(self, pytester: Pytester)
testing/python/fixtures.py:3788
Method
test_callables_nocode
An imported mock.call would break setup/factory discovery due to it being callable and __code__ not being a code object.
testing/python/fixtures.py:1870
Function
test_callinfo
()
testing/test_runner.py:476
Method
test_calls
(self, pytester: Pytester, mock_timing)
testing/acceptance_test.py:862
Method
test_calls_show_2
(self, pytester: Pytester, mock_timing)
testing/acceptance_test.py:875
Method
test_calls_showall
(self, pytester: Pytester, mock_timing)
testing/acceptance_test.py:884
Method
test_calls_showall_verbose
(self, pytester: Pytester, mock_timing)
testing/acceptance_test.py:898
Method
test_can_capture_previously_warned
(self)
testing/test_recwarn.py:396
Method
test_can_skip_class_with_test_attr
Assure test class is skipped when using `__test__=False` (See #2007).
testing/test_collection.py:115
Function
test_cancel_timeout_on_hook
Make sure that we are cancelling any scheduled traceback dumping due to timeout before entering pdb (pytest-dev/pytest-faulthandler#12) or any
testing/test_faulthandler.py:111
Method
test_canonical_import
(self, monkeypatch)
testing/test_pluginmanager.py:228
Method
test_capfd_sys_stdout_mode
(self, capfd)
testing/test_capture.py:1049
Method
test_capfdbinary
(self, pytester: Pytester)
testing/test_capture.py:535
Function
test_caplog_can_override_global_log_level
(pytester: Pytester)
testing/logging/test_fixture.py:202
Function
test_caplog_captures_despite_exception
(pytester: Pytester)
testing/logging/test_fixture.py:241
Function
test_caplog_captures_for_all_stages
(caplog, logging_during_setup_and_teardown)
testing/logging/test_fixture.py:163
Function
test_capsys_results_accessible_by_attribute
(capsys: CaptureFixture[str])
testing/test_capture.py:1333
Method
test_capsysbinary
(self, pytester: Pytester)
testing/test_capture.py:549
Method
test_capsyscapfd
(self, pytester: Pytester)
testing/test_capture.py:445
Method
test_capsyscapfdbinary
(self, pytester: Pytester)
testing/test_capture.py:488
Method
test_capture_and_fixtures
(self, pytester: Pytester)
testing/test_capture.py:151
Method
test_capture_and_logging
#14
testing/test_capture.py:608
Function
test_capture_badoutput_issue412
(pytester: Pytester)
testing/test_capture.py:773
Function
test_capture_binary_output
(pytester: Pytester)
testing/test_capture.py:808
Function
test_capture_conftest_runtest_setup
(pytester: Pytester)
testing/test_capture.py:760
Function
test_capture_early_option_parsing
(pytester: Pytester)
testing/test_capture.py:795
Method
test_capture_is_represented_on_failure_issue128
( self, pytester: Pytester, method )
testing/test_capture.py:501
Method
test_capture_no
(self, many_tests_files, pytester: Pytester)
testing/test_terminal.py:2118
Function
test_capture_not_started_but_reset
()
testing/test_capture.py:1317
Method
test_capture_results_accessible_by_attribute
(self)
testing/test_capture.py:1102
Method
test_capture_scope_cache
(self, pytester: Pytester)
testing/test_capture.py:178
Function
test_capture_with_live_logging
( pytester: Pytester, capture_fixture: CaptureFixture[str] )
testing/test_capture.py:1561
Method
test_captured_text
(self, pytester: Pytester)
testing/test_runner.py:996
Function
test_captureresult
()
testing/test_capture.py:903
Function
test_capturing
(pytester: Pytester)
testing/test_setuponly.py:237
Function
test_capturing_and_logging_fundamentals
(pytester: Pytester, method: str)
testing/test_capture.py:1378
Method
test_capturing_basic_api
(self, method)
testing/test_capture.py:60
Function
test_capturing_bytes_in_utf8_encoding
(pytester: Pytester, method: str)
testing/test_capture.py:118
Method
test_capturing_done_simple
(self)
testing/test_capture.py:1075
← previous
next →
2,201–2,300 of 4,602, ranked by callers