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_pytester_subprocess_via_runpytest_arg
(pytester: Pytester)
testing/test_pytester.py:429
Function
test_pytester_with_doctest
Check that pytester can be used within doctests. It used to use `request.function`, which is `None` with doctests.
testing/test_pytester.py:95
Method
test_pytestini_overrides_empty_other
(self, tmp_path: Path, name: str)
testing/test_config.py:1364
Function
test_python25_compile_issue257
(pytester: Pytester)
testing/test_assertion.py:1239
Method
test_python_minus_m_invocation_fail
(self, pytester: Pytester)
testing/acceptance_test.py:558
Method
test_python_minus_m_invocation_ok
(self, pytester: Pytester)
testing/acceptance_test.py:553
Method
test_python_pytest_package
(self, pytester: Pytester)
testing/acceptance_test.py:563
Method
test_quiet
(self, pytester: Pytester, test_files)
testing/test_terminal.py:1918
Method
test_quiet_reporting
(self, pytester: Pytester)
testing/test_terminal.py:1014
Function
test_quit_with_swallowed_SystemExit
Test that debugging's pytest_configure is re-entrant.
testing/test_debugging.py:1161
Method
test_raise
(self)
doc/en/example/assertion/failure_demo.py:171
Function
test_raise_assertion_error_raisin_repr
(pytester: Pytester)
testing/test_assertion.py:1619
Function
test_raise_unprintable_assertion_error
(pytester: Pytester)
testing/test_assertion.py:1606
Function
test_raises
(pytester: Pytester)
testing/test_nose.py:435
Method
test_raises
(self)
doc/en/example/assertion/failure_demo.py:164
Method
test_raises
(self)
testing/python/raises.py:14
Method
test_raises_as_contextmanager
(self, pytester: Pytester)
testing/python/raises.py:54
Function
test_raises_bdbquit_with_eoferror
It is not guaranteed that DontReadFromInput's read is called.
testing/test_debugging.py:1281
Method
test_raises_callable_no_exception
(self)
testing/python/raises.py:22
Method
test_raises_context_manager_with_kwargs
(self)
testing/python/raises.py:275
Method
test_raises_cyclic_reference
Ensure pytest.raises does not leave a reference cycle (#1965).
testing/python/raises.py:160
Method
test_raises_doesnt
(self)
doc/en/example/assertion/failure_demo.py:168
Method
test_raises_exception_looks_iterable
(self)
testing/python/raises.py:244
Method
test_raises_falsey_type_error
(self)
testing/python/raises.py:32
Method
test_raises_function
(self)
testing/python/raises.py:18
Method
test_raises_match
(self)
testing/python/raises.py:184
Method
test_raises_match_wrong_type
Raising an exception with the wrong type and match= given. pytest should throw the unexpected exception - the pattern match is not re
testing/python/raises.py:234
Method
test_raises_output
(self, pytester: Pytester)
testing/test_session.py:58
Method
test_raises_repr_inflight
Ensure repr() on an exception info inside a pytest.raises with block works (#4386)
testing/python/raises.py:37
Method
test_raises_with_raising_dunder_class
Test current behavior with regard to exceptions via __class__ (#4284).
testing/python/raises.py:261
Function
test_raising_unittest_skiptest_during_collection_is_deprecated
( pytester: Pytester, )
testing/deprecated_test.py:145
Function
test_random_report_log_xdist
`xdist` calls pytest_runtest_logreport as they are executed by the workers, with nodes from several nodes overlapping, so junitxml must cope with
testing/test_junitxml.py:1338
Function
test_raw_skip_reason_skipped
()
testing/test_terminal.py:2465
Function
test_raw_skip_reason_xfail
()
testing/test_terminal.py:2474
Method
test_read_pyc
Ensure that the `_read_pyc` can properly deal with corrupted pyc files. In those circumstances it should just give up instead of gene
testing/test_assertrewrite.py:1104
Method
test_read_pyc_more_invalid
(self, tmp_path: Path)
testing/test_assertrewrite.py:1151
Method
test_read_pyc_success
Ensure that the _rewrite_test() -> _write_pyc() produces a pyc file that can be properly read with _read_pyc()
testing/test_assertrewrite.py:1126
Method
test_readme_failed
(self, pytester: Pytester)
testing/test_cacheprovider.py:1190
Method
test_readme_passed
(self, pytester: Pytester)
testing/test_cacheprovider.py:1185
Method
test_readonly
(self, pytester: Pytester)
testing/test_assertrewrite.py:827
Function
test_real_func_loop_limit
()
testing/test_compat.py:33
Method
test_reasonable_defaults
(self)
testing/python/approx.py:412
Method
test_receives_funcargs
(self, pytester: Pytester)
testing/python/fixtures.py:1195
Method
test_receives_funcargs_scope_mismatch
(self, pytester: Pytester)
testing/python/fixtures.py:1217
Method
test_receives_funcargs_scope_mismatch_issue660
( self, pytester: Pytester )
testing/python/fixtures.py:1243
Method
test_record
(self)
testing/test_recwarn.py:304
Function
test_record_attribute
(pytester: Pytester, run_and_parse: RunAndParse)
testing/test_junitxml.py:1269
Method
test_record_by_subclass
(self)
testing/test_recwarn.py:332
Function
test_record_fixtures_without_junitxml
( pytester: Pytester, fixture_name: str )
testing/test_junitxml.py:1253
Function
test_record_fixtures_xunit2
Ensure record_xml_attribute and record_property drop values when outside of legacy family.
testing/test_junitxml.py:1299
Method
test_record_only
(self)
testing/test_recwarn.py:311
Method
test_record_only_none_deprecated_warn
(self)
testing/test_recwarn.py:320
Function
test_record_property
(pytester: Pytester, run_and_parse: RunAndParse)
testing/test_junitxml.py:1211
Function
test_record_property_same_name
( pytester: Pytester, run_and_parse: RunAndParse )
testing/test_junitxml.py:1233
Function
test_record_testsuite_property
( pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:1527
Function
test_record_testsuite_property_junit_disabled
(pytester: Pytester)
testing/test_junitxml.py:1549
Function
test_record_testsuite_property_type_checking
( pytester: Pytester, junit: bool )
testing/test_junitxml.py:1561
Function
test_record_tuples
(caplog)
testing/logging/test_fixture.py:129
Method
test_recording
(self)
testing/test_recwarn.py:42
Function
test_recursion_source_decode
(pytester: Pytester)
testing/test_assertion.py:1501
Function
test_recursive_dataclasses
()
testing/example_scripts/dataclasses/test_compare_recursive_dataclasses.py:30
Method
test_recursive_dataclasses
(self, pytester: Pytester)
testing/test_assertion.py:819
Method
test_recursive_dataclasses_verbose
(self, pytester: Pytester)
testing/test_assertion.py:838
Function
test_recwarn_captures_deprecation_warning
Check that recwarn can capture DeprecationWarning by default without custom filterwarnings (see #8666).
testing/test_recwarn.py:31
Function
test_recwarn_functional
(pytester: Pytester)
testing/test_recwarn.py:16
Function
test_recwarn_stacklevel
(recwarn: WarningsRecorder)
testing/test_recwarn.py:10
Method
test_reevaluate_dynamic_expr
#7360
testing/test_mark.py:731
Method
test_register_assert_rewrite_checks_types
(self)
testing/test_assertion.py:291
Method
test_register_imported_modules
(self)
testing/test_pluginmanager.py:216
Method
test_register_only_with_mark
(self, pytester: Pytester)
testing/python/fixtures.py:2507
Function
test_regression_nagative_line_index
With Python 3.10 alphas, there was an INTERNALERROR reported in https://github.com/pytest-dev/pytest/pull/8227 This test ensures it does
testing/code/test_excinfo.py:1400
Method
test_reinterpret_fails_with_print_for_the_fun_of_it
(self)
doc/en/example/assertion/failure_demo.py:177
Method
test_relative_tolerance
(self)
testing/python/approx.py:452
Method
test_reload_is_same_and_reloads
Reloading a (collected) module after change picks up the change.
testing/test_assertrewrite.py:1196
Function
test_relpath_rootdir
(pytester: Pytester)
testing/test_skipping.py:1430
Method
test_remember_rewritten_modules
`AssertionRewriteHook` should remember rewritten modules so it doesn't give false positives (#2005).
testing/test_assertrewrite.py:975
Method
test_removal_accepts_lock
(self, tmp_path)
testing/test_tmpdir.py:309
Method
test_remove_added
(self)
testing/test_pytester.py:318
Method
test_remove_dir_prefix
This is not compatible with compgen but it is with bash itself: ls /usr/<TAB>.
testing/test_argcomplete.py:88
Function
test_removed_in_x_warning_as_error
This ensures that PytestRemovedInXWarnings raised by pytest are turned into errors. This test should be enabled as part of each major release, an
testing/test_warnings.py:521
Method
test_renamed_dir_creates_mismatch
( self, tmp_path: Path, monkeypatch: MonkeyPatch )
testing/test_pathlib.py:146
Method
test_report_all_failed_collections_initargs
(self, pytester: Pytester)
testing/acceptance_test.py:392
Method
test_report_collect_after_half_a_second
Test for "collecting" being updated after 0.5s
testing/test_terminal.py:154
Method
test_report_collectionfinish_hook
(self, pytester: Pytester, params)
testing/test_terminal.py:1035
Function
test_report_extra_parameters
(reporttype: Type[reports.BaseReport])
testing/test_runner.py:469
Method
test_report_prevent_ConftestImportFailure_hiding_exception
( self, pytester: Pytester )
testing/test_reports.py:407
Method
test_report_teststatus_explicit_markup
Test that TerminalReporter handles markup explicitly provided by a pytest_report_teststatus hook.
testing/test_terminal.py:325
Function
test_reportchars
(pytester: Pytester)
testing/test_skipping.py:1041
Function
test_reportchars_all
(pytester: Pytester)
testing/test_skipping.py:1078
Function
test_reportchars_all_error
(pytester: Pytester)
testing/test_skipping.py:1111
Function
test_reportchars_error
(pytester: Pytester)
testing/test_skipping.py:1063
Method
test_reportinfo
Make sure that DoctestItem.reportinfo() returns lineno.
testing/test_doctest.py:781
Method
test_reportinfo_with_nasty_getattr
(self, pytester: Pytester)
testing/python/collect.py:1181
Method
test_repr_complex_numbers
(self)
testing/python/approx.py:291
Method
test_repr_excinfo_addouterr
(self, importasmod, tw_mock)
testing/code/test_excinfo.py:844
Method
test_repr_excinfo_reprcrash
(self, importasmod)
testing/code/test_excinfo.py:858
Method
test_repr_local
(self)
testing/code/test_excinfo.py:534
Method
test_repr_local_truncated
(self)
testing/code/test_excinfo.py:577
Method
test_repr_local_with_error
(self)
testing/code/test_excinfo.py:545
Method
test_repr_local_with_exception_in_class_property
(self)
testing/code/test_excinfo.py:558
← previous
next →
3,801–3,900 of 4,602, ranked by callers