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_files
(self, pytester: Pytester)
testing/test_terminal.py:1881
Function
test_fillfixtures_is_deprecated
()
testing/deprecated_test.py:42
Method
test_fillfuncargs_exposed
(self)
testing/python/fixtures.py:106
Function
test_fillfuncargs_is_deprecated
()
testing/deprecated_test.py:31
Method
test_filter_traceback_generated_code
Test that filter_traceback() works with the fact that _pytest._code.code.Code.path attribute might return an str object. In this case
testing/python/collect.py:1084
Method
test_filter_traceback_path_no_longer_valid
Test that filter_traceback() works with the fact that _pytest._code.code.Code.path attribute might return an str object. In this case
testing/python/collect.py:1108
Function
test_filterwarnings_mark
Test ``filterwarnings`` mark works and takes precedence over command line and ini options.
testing/test_warnings.py:178
Function
test_filterwarnings_mark_registration
Ensure filterwarnings mark is registered
testing/test_warnings.py:226
Method
test_finalizer_order_on_parametrization
#246
testing/python/fixtures.py:3013
Method
test_finally
(self)
testing/code/test_source.py:569
Method
test_find_byid_without_instance_parents
(self, pytester: Pytester)
testing/test_collection.py:624
Method
test_find_parametrized_scope
Unit test for _find_parametrized_scope (#3941).
testing/python/metafunc.py:140
Function
test_findsource
(monkeypatch)
testing/code/test_source.py:328
Function
test_findsource_fallback
()
testing/code/test_source.py:319
Function
test_fixture
(tmp_path, a)
testing/example_scripts/tmpdir/tmp_path_fixture.py:5
Function
test_fixture_arg_ordering
This test describes how fixtures in the same scope but without explicit dependencies between them are created. While users should make depend
testing/python/fixtures.py:4422
Function
test_fixture_dependency
(pytester: Pytester)
testing/test_conftest.py:399
Method
test_fixture_disallow_twice
Test that applying @pytest.fixture twice generates an error (#2334).
testing/python/fixtures.py:3618
Method
test_fixture_excinfo_leak
(self, pytester: Pytester)
testing/python/fixtures.py:623
Method
test_fixture_finalizer
(self, pytester: Pytester)
testing/python/fixtures.py:2879
Function
test_fixture_help
(pytester: Pytester)
testing/logging/test_fixture.py:11
Method
test_fixture_marked_function_not_collected_as_test
( self, pytester: Pytester )
testing/python/fixtures.py:3123
Function
test_fixture_mock_integration
Test that decorators applied to fixture are left working (#3774)
testing/acceptance_test.py:1141
Method
test_fixture_module_doctest_scopes
Test that auto-use fixtures work properly with doctest files. See #1057 and #1100.
testing/test_doctest.py:1284
Function
test_fixture_named_request
(pytester: Pytester)
testing/python/fixtures.py:4340
Function
test_fixture_order_respects_scope
Ensure that fixtures are created according to scope order (#2405).
testing/acceptance_test.py:1083
Function
test_fixture_param_shadowing
Parametrized arguments would be shadowed if a fixture with the same name also exists (#5036)
testing/python/fixtures.py:4297
Function
test_fixture_parametrization_nparray
(pytester: Pytester)
testing/python/fixtures.py:4402
Method
test_fixture_parametrized_empty_ids
Fixtures parametrized with empty ids cause an internal error (#1849).
testing/python/metafunc.py:1238
Method
test_fixture_parametrized_with_iterator
(self, pytester: Pytester)
testing/python/fixtures.py:1461
Function
test_fixture_scope_sibling_conftests
Regression test case for https://github.com/pytest-dev/pytest/issues/2836
testing/test_collection.py:1003
Method
test_fixture_scopes
Test that auto-use fixtures work properly with doctest modules. See #1057 and #1100.
testing/test_doctest.py:1250
Method
test_fixture_use_by_other_fixtures
Ensure that capsys and capfd can be used by other fixtures during setup and teardown.
testing/test_capture.py:679
Method
test_fixture_use_by_other_fixtures_teardown
Ensure we can access setup and teardown buffers from teardown when using capsys/capfd (##3033)
testing/test_capture.py:715
Function
test_fixture_values_leak
Ensure that fixture objects are properly destroyed by the garbage collector at the end of their expected life-times (#2981).
testing/acceptance_test.py:1035
Function
test_fixturerequest_getmodulepath
(pytester: pytest.Pytester)
testing/test_legacypath.py:90
Function
test_fixtures_in_conftest
(pytester: Pytester)
testing/python/show_fixtures_per_test.py:39
Function
test_fixtures_in_module
(pytester: Pytester)
testing/python/show_fixtures_per_test.py:10
Function
test_fixtures_nose_setup_issue8394
(pytester: Pytester)
testing/test_nose.py:222
Function
test_fixtures_setup_setUpClass_issue8394
(pytester: Pytester)
testing/test_unittest.py:305
Method
test_fixtures_sub_subdir_normalize_sep
(self, pytester: Pytester)
testing/python/fixtures.py:1032
Method
test_fmt_and
(self)
testing/test_assertion.py:1071
Method
test_fmt_multi_newline_before_where
(self)
testing/test_assertion.py:1112
Method
test_fmt_newline
(self)
testing/test_assertion.py:1081
Method
test_fmt_newline_before_where
(self)
testing/test_assertion.py:1091
Method
test_fmt_newline_escaped
(self)
testing/test_assertion.py:1086
Method
test_fmt_simple
(self)
testing/test_assertion.py:1062
Method
test_fmt_where
(self)
testing/test_assertion.py:1066
Method
test_fmt_where_nested
(self)
testing/test_assertion.py:1076
Function
test_foo
(x)
bench/skip.py:7
Function
test_foo
()
testing/plugins_integration/simple_integration.py:4
Function
test_foo
(i)
testing/example_scripts/warnings/test_group_warnings_by_message.py:11
Function
test_foo
(i)
testing/example_scripts/warnings/test_group_warnings_by_message_summary/test_1.py:11
Function
test_foo
()
testing/example_scripts/collect/collect_init_tests/tests/test_foo.py:1
Function
test_foo
()
testing/example_scripts/config/collect_pytest_prefix/test_foo.py:1
Method
test_foo
(self)
testing/example_scripts/unittest/test_unittest_plain_async.py:5
Method
test_foo
(self)
testing/example_scripts/unittest/test_setup_skip_class.py:13
Method
test_foo
(self)
testing/example_scripts/unittest/test_setup_skip.py:12
Function
test_foo_1
()
testing/example_scripts/warnings/test_group_warnings_by_message.py:15
Function
test_foo_1
()
testing/example_scripts/warnings/test_group_warnings_by_message_summary/test_1.py:15
Function
test_foobar
(my_fixture)
testing/example_scripts/acceptance/fixture_mock_integration.py:15
Method
test_format_args
(self)
testing/python/metafunc.py:972
Method
test_format_excinfo
(self, reproptions: Dict[str, Any])
testing/code/test_excinfo.py:1065
Method
test_format_nonascii_explanation
(self)
testing/test_assertion.py:783
Function
test_format_session_duration
(seconds, expected)
testing/test_terminal.py:2331
Function
test_format_trimmed
()
testing/test_terminal.py:2482
Method
test_formatchar
(self)
testing/test_assertrewrite.py:711
Method
test_fraction
(self)
testing/python/approx.py:525
Function
test_frame_getargs
()
testing/code/test_code.py:118
Function
test_frame_getsourcelineno_myself
()
testing/code/test_code.py:57
Function
test_frame_leak_on_failing_test
Pytest would leak garbage referencing the frames of tests that failed that could never be reclaimed (#2798). Unfortunately it was not possibl
testing/acceptance_test.py:1108
Method
test_from_current_with_missing
(self)
testing/code/test_code.py:155
Function
test_from_user
()
testing/test_scope.py:34
Method
test_frozenzet
(self)
testing/test_assertion.py:664
Function
test_fscollector_from_parent
Ensure File.from_parent can forward custom arguments to the constructor. Context: https://github.com/pytest-dev/pytest-cpp/pull/47
testing/test_collection.py:1371
Function
test_fscollector_gethookproxy_isinitpath
(pytester: Pytester)
testing/deprecated_test.py:79
Method
test_full_output_truncated
Test against full runpytest() output.
testing/test_assertion.py:1201
Function
test_func
()
doc/en/example/assertion/global_testmodule_config/test_hello_world.py:4
Function
test_func
(some, other)
testing/example_scripts/fixtures/fill_fixtures/test_funcarg_basic.py:14
Function
test_func
(something)
testing/example_scripts/fixtures/fill_fixtures/test_funcarg_lookup_modulelevel.py:14
Function
test_func
(some)
testing/example_scripts/fixtures/fill_fixtures/test_funcarg_lookupfails.py:9
Method
test_func_closure_all_scopes_complex
Complex test involving all scopes and mixing autouse with normal fixtures
testing/python/fixtures.py:4139
Method
test_func_closure_module
(self, pytester: Pytester)
testing/python/fixtures.py:4045
Method
test_func_closure_module_auto
Semantically identical to the example posted in #2405 when ``use_mark=True``
testing/python/fixtures.py:3954
Method
test_func_closure_same_scope_closer_root_first
Auto-use fixtures of same scope are ordered by closer-to-root first
testing/python/fixtures.py:4097
Method
test_func_closure_scopes_reordered
Test ensures that fixtures are ordered by scope regardless of the order of the parameters, although fixtures of same scope keep the declared o
testing/python/fixtures.py:4064
Method
test_func_closure_with_native_fixtures
Sanity check that verifies the order returned by the closures and the actual fixture execution order: The execution order may differ because o
testing/python/fixtures.py:3989
Method
test_func_reportinfo
(self, pytester: Pytester)
testing/python/collect.py:1156
Method
test_funcarg
(self, pytester: Pytester, scope, ok, error)
testing/python/fixtures.py:3251
Method
test_funcarg_and_setup
(self, pytester: Pytester)
testing/python/fixtures.py:1964
Method
test_funcarg_basic
(self, pytester: Pytester)
testing/python/fixtures.py:129
Method
test_funcarg_compat
(self, pytester: Pytester)
testing/python/fixtures.py:3341
Method
test_funcarg_lookup_classlevel
(self, pytester: Pytester)
testing/python/fixtures.py:145
Method
test_funcarg_lookup_error
(self, pytester: Pytester)
testing/python/fixtures.py:585
Method
test_funcarg_lookup_modulelevel
(self, pytester: Pytester)
testing/python/fixtures.py:140
Method
test_funcarg_lookupfails
(self, pytester: Pytester)
testing/python/fixtures.py:110
Method
test_funcarg_non_pycollectobj
( self, pytester: Pytester, recwarn )
testing/python/integration.py:12
Method
test_funcarg_parametrized_and_used_twice
(self, pytester: Pytester)
testing/python/fixtures.py:1315
Function
test_function
()
doc/en/example/pythoncollection.py:5
Method
test_function
(self)
testing/test_recwarn.py:235
← previous
next →
2,801–2,900 of 4,602, ranked by callers