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_unittest_setup_interaction
(pytester: Pytester, stmt: str)
testing/test_unittest.py:834
Function
test_unittest_skip_issue1169
(pytester: Pytester)
testing/test_unittest.py:993
Function
test_unittest_skip_issue148
(pytester: Pytester)
testing/test_unittest.py:216
Function
test_unittest_typerror_traceback
(pytester: Pytester)
testing/test_unittest.py:760
Method
test_unknown_attr
(self, monkeypatch: MonkeyPatch)
testing/test_monkeypatch.py:77
Method
test_unknown_attr_non_raising
(self, monkeypatch: MonkeyPatch)
testing/test_monkeypatch.py:81
Method
test_unknown_import
(self, monkeypatch: MonkeyPatch)
testing/test_monkeypatch.py:73
Method
test_unknown_option
(self, pytester: Pytester)
testing/acceptance_test.py:433
Function
test_unorderable_types
(pytester: Pytester)
testing/test_unittest.py:740
Function
test_unorderable_types
(pytester: Pytester)
testing/python/collect.py:1259
Function
test_unraisable
(pytester: Pytester)
testing/test_unraisableexception.py:12
Function
test_unraisable_in_setup
(pytester: Pytester)
testing/test_unraisableexception.py:44
Function
test_unraisable_in_teardown
(pytester: Pytester)
testing/test_unraisableexception.py:80
Function
test_unraisable_warning_error
(pytester: Pytester)
testing/test_unraisableexception.py:117
Method
test_unsupported_pytest_section_in_cfg_file
.cfg files with [pytest] section are no longer supported and should fail to alert users
testing/test_findpaths.py:48
Method
test_update
(self)
testing/io/test_terminalwriter.py:221
Method
test_update_with_newline
(self)
testing/io/test_terminalwriter.py:226
Method
test_update_with_wide_text
(self)
testing/io/test_terminalwriter.py:231
Function
test_upper
()
testing/freeze/tests/test_trivial.py:1
Function
test_url_property
(pytester: Pytester)
testing/test_junitxml.py:1500
Function
test_usage_error_code
(pytester: Pytester)
testing/acceptance_test.py:1148
Method
test_usefixtures_ini
(self, pytester: Pytester)
testing/python/fixtures.py:1407
Method
test_usefixtures_marker
(self, pytester: Pytester)
testing/python/fixtures.py:1382
Function
test_usefixtures_marker_on_unittest
#3498
testing/test_unittest.py:1031
Method
test_usefixtures_seen_in_generate_tests
(self, pytester: Pytester)
testing/python/metafunc.py:1354
Method
test_usefixtures_seen_in_showmarkers
(self, pytester: Pytester)
testing/python/fixtures.py:1436
Method
test_uses_parametrized_resource
(self, pytester: Pytester)
testing/python/fixtures.py:1991
Function
test_using_capsys_fixture_works_with_sys_stdout_encoding
( capsys: CaptureFixture[str], )
testing/test_capture.py:1322
Method
test_vacuous_all_skipped
(self, pytester, makedoctest)
testing/test_doctest.py:1145
Method
test_valid_cfg_file
Custom .cfg files with [tool:pytest] section are read correctly
testing/test_findpaths.py:42
Function
test_valid_idents
(ident: str)
testing/test_mark_expression.py:167
Method
test_valid_setup_py
Test to make sure that pytest ignores valid setup.py files when ran with --doctest-modules
testing/test_doctest.py:797
Method
test_valid_toml_file
.toml files with [tool.pytest.ini_options] are read correctly, including changing data types to str/list for compatibility with other configur
testing/test_findpaths.py:76
Function
test_validate_basetemp_fails
(tmp_path, basetemp, monkeypatch)
testing/test_main.py:94
Function
test_validate_basetemp_integration
(pytester: Pytester)
testing/test_main.py:103
Function
test_validate_basetemp_ok
(tmp_path, basetemp, monkeypatch)
testing/test_main.py:88
Method
test_value_access_by_path
(self, basedir: Path)
testing/test_conftest.py:93
Method
test_value_access_not_existing
(self, basedir: Path)
testing/test_conftest.py:86
Method
test_value_access_with_confmod
(self, basedir: Path)
testing/test_conftest.py:109
Method
test_verbose
(self, pytester: Pytester, test_files)
testing/test_terminal.py:1905
Method
test_verbose
(self, many_tests_files, pytester: Pytester)
testing/test_terminal.py:2040
Method
test_verbose_count
(self, many_tests_files, pytester: Pytester)
testing/test_terminal.py:2050
Function
test_verbose_include_multiline_docstring
(pytester: Pytester)
testing/python/show_fixtures_per_test.py:219
Function
test_verbose_include_private_fixtures_and_loc
(pytester: Pytester)
testing/python/show_fixtures_per_test.py:122
Method
test_verbose_reporting
(self, verbose_testfile, pytester: Pytester)
testing/test_terminal.py:981
Method
test_verbose_reporting_xdist
( self, verbose_testfile, monkeypatch: MonkeyPatch, pytester: Pytester,
testing/test_terminal.py:995
Method
test_verbose_skip_reason
(self, pytester: Pytester)
testing/test_terminal.py:348
Function
test_version_less_verbose
(pytester: Pytester, pytestconfig, monkeypatch)
testing/test_helpconfig.py:15
Function
test_version_verbose
(pytester: Pytester, pytestconfig, monkeypatch)
testing/test_helpconfig.py:6
Function
test_versions
Regression check for the public version attributes in pytest.
testing/test_helpconfig.py:22
Function
test_via_exec
(pytester: Pytester)
testing/test_terminal.py:2360
Function
test_visit_ignores_errors
(tmp_path: Path)
testing/test_pathlib.py:422
Function
test_warn_missing
(pytester: Pytester, cmdline_args, warning_output)
testing/test_assertion.py:1494
Function
test_warn_on_async_function
(pytester: Pytester)
testing/acceptance_test.py:1154
Function
test_warn_on_async_gen_function
(pytester: Pytester)
testing/acceptance_test.py:1187
Method
test_warn_stacklevel
#4243
testing/test_recwarn.py:58
Function
test_warning_captured_hook
(pytester: Pytester)
testing/test_warnings.py:242
Function
test_warning_on_unwrap_of_broken_object
( stop: Optional[Callable[[object], object]] )
testing/test_doctest.py:1525
Method
test_warning_tuple
(self)
testing/test_recwarn.py:240
Function
test_warning_types
Make sure all warnings declared in _pytest.warning_types are displayed as coming from 'pytest' instead of the internal module (#5452).
testing/test_warning_types.py:16
Function
test_warnings_checker_twice
Issue #4617
testing/test_warnings.py:574
Method
test_warns_context_manager_with_kwargs
(self)
testing/test_recwarn.py:406
Function
test_warns_none_is_deprecated
()
testing/deprecated_test.py:193
Function
test_wcswidth
(s: str, expected: int)
testing/io/test_wcwidth.py:37
Function
test_wcwidth
(c: str, expected: int)
testing/io/test_wcwidth.py:21
Method
test_with_arg_outside_cwd_with_inifile
(self, tmp_path: Path)
testing/test_config.py:1445
Method
test_with_arg_outside_cwd_without_inifile
( self, tmp_path: Path, monkeypatch: MonkeyPatch )
testing/test_config.py:1433
Method
test_with_config_also_in_parent_directory
Regression test for #7807.
testing/test_config.py:1476
Method
test_with_deselected
(self, pytester: Pytester, mock_timing)
testing/acceptance_test.py:911
Method
test_with_existing_file_in_subdir
( self, tmp_path: Path, monkeypatch: MonkeyPatch )
testing/test_config.py:1465
Method
test_with_failing_collection
(self, pytester: Pytester, mock_timing)
testing/acceptance_test.py:918
Method
test_with_ini
(self, tmp_path: Path, name: str, contents: str)
testing/test_config.py:1346
Method
test_with_non_dir_arg
( self, dirs: Sequence[str], tmp_path: Path, monkeypatch: MonkeyPatch )
testing/test_config.py:1457
Method
test_with_not
(self, pytester: Pytester, mock_timing)
testing/acceptance_test.py:929
Method
test_with_only_debug_writes_pytestdebug_log
(self, pytester: Pytester)
testing/test_config.py:2077
Method
test_with_specific_inifile
( self, tmp_path: Path, name: str, contents: str )
testing/test_config.py:1402
Function
test_with_statement
(caplog)
testing/logging/test_fixture.py:85
Method
test_without_debug_does_not_write_log
(self, pytester: Pytester)
testing/test_config.py:2067
Function
test_works_with_filterwarnings
Ensure our warnings capture does not mess with pre-installed filters (#2430).
testing/test_warnings.py:153
Function
test_wrap_session_exit_sessionfinish
( returncode: Optional[int], pytester: Pytester )
testing/test_main.py:66
Function
test_wrap_session_notify_exception
(ret_exc, pytester: Pytester)
testing/test_main.py:23
Function
test_wrapped_getfslineno
()
testing/python/integration.py:82
Method
test_wrapped_getfuncargnames
(self)
testing/python/integration.py:101
Method
test_write_bytes_to_buffer
In python3, stdout / stderr are text io wrappers (exposing a buffer property of the underlying bytestream). See issue #1407
testing/test_capture.py:861
Method
test_write_pyc
(self, pytester: Pytester, tmp_path, monkeypatch)
testing/test_assertrewrite.py:1040
Method
test_writeline
(self, pytester: Pytester, linecomp)
testing/test_terminal.py:119
Method
test_writeorg
(self, tmpfile: BinaryIO)
testing/test_capture.py:1001
Method
test_wrong_skip_usage
(self, pytester: Pytester)
testing/test_skipping.py:867
Method
test_wrong_target
(self, monkeypatch: MonkeyPatch)
testing/test_monkeypatch.py:69
Function
test_x
()
testing/example_scripts/perf_examples/collect_stats/template_test.py:1
Method
test_xdist_longrepr_to_str_issue_241
Regarding issue pytest-xdist#241. This test came originally from test_remote.py in xdist (ca03269).
testing/test_reports.py:14
Method
test_xdist_normal
( self, many_tests_files, pytester: Pytester, monkeypatch )
testing/test_terminal.py:2066
Method
test_xdist_normal
(self, many_files, pytester: Pytester, monkeypatch)
testing/test_terminal.py:2214
Method
test_xdist_normal_count
( self, many_tests_files, pytester: Pytester, monkeypatch )
testing/test_terminal.py:2074
Method
test_xdist_report_longrepr_reprcrash_130
Regarding issue pytest-xdist#130 This test came originally from test_remote.py in xdist (ca03269).
testing/test_reports.py:37
Method
test_xdist_verbose
( self, many_tests_files, pytester: Pytester, monkeypatch )
testing/test_terminal.py:2088
Method
test_xfail
(self, pytester: Pytester)
testing/test_skipping.py:1288
Method
test_xfail_captures_output_once
( self, pytester: Pytester, junit_logging: str, run_and_parse: RunAndParse )
testing/test_junitxml.py:683
Method
test_xfail_condition_keyword
(self, pytester: Pytester, strict: bool)
testing/test_skipping.py:672
Method
test_xfail_evalfalse_but_fails
(self, pytester: Pytester)
testing/test_skipping.py:397
← previous
next →
4,401–4,500 of 4,602, ranked by callers