MCPcopy Create free account

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

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

Functiontest_pytester_subprocess_via_runpytest_arg
(pytester: Pytester)
testing/test_pytester.py:429
Functiontest_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
Methodtest_pytestini_overrides_empty_other
(self, tmp_path: Path, name: str)
testing/test_config.py:1364
Functiontest_python25_compile_issue257
(pytester: Pytester)
testing/test_assertion.py:1239
Methodtest_python_minus_m_invocation_fail
(self, pytester: Pytester)
testing/acceptance_test.py:558
Methodtest_python_minus_m_invocation_ok
(self, pytester: Pytester)
testing/acceptance_test.py:553
Methodtest_python_pytest_package
(self, pytester: Pytester)
testing/acceptance_test.py:563
Methodtest_quiet
(self, pytester: Pytester, test_files)
testing/test_terminal.py:1918
Methodtest_quiet_reporting
(self, pytester: Pytester)
testing/test_terminal.py:1014
Functiontest_quit_with_swallowed_SystemExit
Test that debugging's pytest_configure is re-entrant.
testing/test_debugging.py:1161
Methodtest_raise
(self)
doc/en/example/assertion/failure_demo.py:171
Functiontest_raise_assertion_error_raisin_repr
(pytester: Pytester)
testing/test_assertion.py:1619
Functiontest_raise_unprintable_assertion_error
(pytester: Pytester)
testing/test_assertion.py:1606
Functiontest_raises
(pytester: Pytester)
testing/test_nose.py:435
Methodtest_raises
(self)
doc/en/example/assertion/failure_demo.py:164
Methodtest_raises
(self)
testing/python/raises.py:14
Methodtest_raises_as_contextmanager
(self, pytester: Pytester)
testing/python/raises.py:54
Functiontest_raises_bdbquit_with_eoferror
It is not guaranteed that DontReadFromInput's read is called.
testing/test_debugging.py:1281
Methodtest_raises_callable_no_exception
(self)
testing/python/raises.py:22
Methodtest_raises_context_manager_with_kwargs
(self)
testing/python/raises.py:275
Methodtest_raises_cyclic_reference
Ensure pytest.raises does not leave a reference cycle (#1965).
testing/python/raises.py:160
Methodtest_raises_doesnt
(self)
doc/en/example/assertion/failure_demo.py:168
Methodtest_raises_exception_looks_iterable
(self)
testing/python/raises.py:244
Methodtest_raises_falsey_type_error
(self)
testing/python/raises.py:32
Methodtest_raises_function
(self)
testing/python/raises.py:18
Methodtest_raises_match
(self)
testing/python/raises.py:184
Methodtest_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
Methodtest_raises_output
(self, pytester: Pytester)
testing/test_session.py:58
Methodtest_raises_repr_inflight
Ensure repr() on an exception info inside a pytest.raises with block works (#4386)
testing/python/raises.py:37
Methodtest_raises_with_raising_dunder_class
Test current behavior with regard to exceptions via __class__ (#4284).
testing/python/raises.py:261
Functiontest_raising_unittest_skiptest_during_collection_is_deprecated
( pytester: Pytester, )
testing/deprecated_test.py:145
Functiontest_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
Functiontest_raw_skip_reason_skipped
()
testing/test_terminal.py:2465
Functiontest_raw_skip_reason_xfail
()
testing/test_terminal.py:2474
Methodtest_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
Methodtest_read_pyc_more_invalid
(self, tmp_path: Path)
testing/test_assertrewrite.py:1151
Methodtest_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
Methodtest_readme_failed
(self, pytester: Pytester)
testing/test_cacheprovider.py:1190
Methodtest_readme_passed
(self, pytester: Pytester)
testing/test_cacheprovider.py:1185
Methodtest_readonly
(self, pytester: Pytester)
testing/test_assertrewrite.py:827
Functiontest_real_func_loop_limit
()
testing/test_compat.py:33
Methodtest_reasonable_defaults
(self)
testing/python/approx.py:412
Methodtest_receives_funcargs
(self, pytester: Pytester)
testing/python/fixtures.py:1195
Methodtest_receives_funcargs_scope_mismatch
(self, pytester: Pytester)
testing/python/fixtures.py:1217
Methodtest_receives_funcargs_scope_mismatch_issue660
( self, pytester: Pytester )
testing/python/fixtures.py:1243
Methodtest_record
(self)
testing/test_recwarn.py:304
Functiontest_record_attribute
(pytester: Pytester, run_and_parse: RunAndParse)
testing/test_junitxml.py:1269
Methodtest_record_by_subclass
(self)
testing/test_recwarn.py:332
Functiontest_record_fixtures_without_junitxml
( pytester: Pytester, fixture_name: str )
testing/test_junitxml.py:1253
Functiontest_record_fixtures_xunit2
Ensure record_xml_attribute and record_property drop values when outside of legacy family.
testing/test_junitxml.py:1299
Methodtest_record_only
(self)
testing/test_recwarn.py:311
Methodtest_record_only_none_deprecated_warn
(self)
testing/test_recwarn.py:320
Functiontest_record_property
(pytester: Pytester, run_and_parse: RunAndParse)
testing/test_junitxml.py:1211
Functiontest_record_property_same_name
( pytester: Pytester, run_and_parse: RunAndParse )
testing/test_junitxml.py:1233
Functiontest_record_testsuite_property
( pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str )
testing/test_junitxml.py:1527
Functiontest_record_testsuite_property_junit_disabled
(pytester: Pytester)
testing/test_junitxml.py:1549
Functiontest_record_testsuite_property_type_checking
( pytester: Pytester, junit: bool )
testing/test_junitxml.py:1561
Functiontest_record_tuples
(caplog)
testing/logging/test_fixture.py:129
Methodtest_recording
(self)
testing/test_recwarn.py:42
Functiontest_recursion_source_decode
(pytester: Pytester)
testing/test_assertion.py:1501
Functiontest_recursive_dataclasses
()
testing/example_scripts/dataclasses/test_compare_recursive_dataclasses.py:30
Methodtest_recursive_dataclasses
(self, pytester: Pytester)
testing/test_assertion.py:819
Methodtest_recursive_dataclasses_verbose
(self, pytester: Pytester)
testing/test_assertion.py:838
Functiontest_recwarn_captures_deprecation_warning
Check that recwarn can capture DeprecationWarning by default without custom filterwarnings (see #8666).
testing/test_recwarn.py:31
Functiontest_recwarn_functional
(pytester: Pytester)
testing/test_recwarn.py:16
Functiontest_recwarn_stacklevel
(recwarn: WarningsRecorder)
testing/test_recwarn.py:10
Methodtest_reevaluate_dynamic_expr
#7360
testing/test_mark.py:731
Methodtest_register_assert_rewrite_checks_types
(self)
testing/test_assertion.py:291
Methodtest_register_imported_modules
(self)
testing/test_pluginmanager.py:216
Methodtest_register_only_with_mark
(self, pytester: Pytester)
testing/python/fixtures.py:2507
Functiontest_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
Methodtest_reinterpret_fails_with_print_for_the_fun_of_it
(self)
doc/en/example/assertion/failure_demo.py:177
Methodtest_relative_tolerance
(self)
testing/python/approx.py:452
Methodtest_reload_is_same_and_reloads
Reloading a (collected) module after change picks up the change.
testing/test_assertrewrite.py:1196
Functiontest_relpath_rootdir
(pytester: Pytester)
testing/test_skipping.py:1430
Methodtest_remember_rewritten_modules
`AssertionRewriteHook` should remember rewritten modules so it doesn't give false positives (#2005).
testing/test_assertrewrite.py:975
Methodtest_removal_accepts_lock
(self, tmp_path)
testing/test_tmpdir.py:309
Methodtest_remove_added
(self)
testing/test_pytester.py:318
Methodtest_remove_dir_prefix
This is not compatible with compgen but it is with bash itself: ls /usr/<TAB>.
testing/test_argcomplete.py:88
Functiontest_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
Methodtest_renamed_dir_creates_mismatch
( self, tmp_path: Path, monkeypatch: MonkeyPatch )
testing/test_pathlib.py:146
Methodtest_report_all_failed_collections_initargs
(self, pytester: Pytester)
testing/acceptance_test.py:392
Methodtest_report_collect_after_half_a_second
Test for "collecting" being updated after 0.5s
testing/test_terminal.py:154
Methodtest_report_collectionfinish_hook
(self, pytester: Pytester, params)
testing/test_terminal.py:1035
Functiontest_report_extra_parameters
(reporttype: Type[reports.BaseReport])
testing/test_runner.py:469
Methodtest_report_prevent_ConftestImportFailure_hiding_exception
( self, pytester: Pytester )
testing/test_reports.py:407
Methodtest_report_teststatus_explicit_markup
Test that TerminalReporter handles markup explicitly provided by a pytest_report_teststatus hook.
testing/test_terminal.py:325
Functiontest_reportchars
(pytester: Pytester)
testing/test_skipping.py:1041
Functiontest_reportchars_all
(pytester: Pytester)
testing/test_skipping.py:1078
Functiontest_reportchars_all_error
(pytester: Pytester)
testing/test_skipping.py:1111
Functiontest_reportchars_error
(pytester: Pytester)
testing/test_skipping.py:1063
Methodtest_reportinfo
Make sure that DoctestItem.reportinfo() returns lineno.
testing/test_doctest.py:781
Methodtest_reportinfo_with_nasty_getattr
(self, pytester: Pytester)
testing/python/collect.py:1181
Methodtest_repr_complex_numbers
(self)
testing/python/approx.py:291
Methodtest_repr_excinfo_addouterr
(self, importasmod, tw_mock)
testing/code/test_excinfo.py:844
Methodtest_repr_excinfo_reprcrash
(self, importasmod)
testing/code/test_excinfo.py:858
Methodtest_repr_local
(self)
testing/code/test_excinfo.py:534
Methodtest_repr_local_truncated
(self)
testing/code/test_excinfo.py:577
Methodtest_repr_local_with_error
(self)
testing/code/test_excinfo.py:545
Methodtest_repr_local_with_exception_in_class_property
(self)
testing/code/test_excinfo.py:558
← previousnext →3,801–3,900 of 4,602, ranked by callers