Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ count
Method
count
src/_pytest/capture.py:500–501 ·
view source on GitHub ↗
(self, value: AnyStr)
Source
from the content-addressed store, hash-verified
498
)
499
500
def
count(self, value: AnyStr) -> int:
501
return
tuple(self).count(value)
502
503
def
index(self, value) -> int:
504
return
tuple(self).index(value)
Callers
15
test_captureresult
Function · 0.95
visit_Assert
Method · 0.80
_iter_rewritable_modules
Function · 0.80
test_summary_f_alias
Method · 0.80
test_summary_s_alias
Method · 0.80
test_terminal_summary_warnings_are_displayed
Function · 0.80
test_terminal_summary_warnings_header_once
Function · 0.80
test_pyargs_only_imported_once
Method · 0.80
test_warn_on_async_function
Function · 0.80
test_warn_on_async_gen_function
Function · 0.80
test_traceback_argsetup
Method · 0.80
test_parametrize_ids_iterator_without_mark
Method · 0.80
Calls
no outgoing calls
Tested by
13
test_captureresult
Function · 0.76
test_summary_f_alias
Method · 0.64
test_summary_s_alias
Method · 0.64
test_terminal_summary_warnings_are_displayed
Function · 0.64
test_terminal_summary_warnings_header_once
Function · 0.64
test_pyargs_only_imported_once
Method · 0.64
test_warn_on_async_function
Function · 0.64
test_warn_on_async_gen_function
Function · 0.64
test_traceback_argsetup
Method · 0.64
test_parametrize_ids_iterator_without_mark
Method · 0.64
test_parametrize_issue634
Method · 0.64
test_log_in_runtest_logreport
Function · 0.64