MCPcopy Create free account
hub / github.com/pytest-dev/pytest / getoption

Method getoption

testing/test_assertrewrite.py:1812–1814  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

1810 def test_get_maxsize_for_saferepr(self, verbose: int, expected_size) -> None:
1811 class FakeConfig:
1812 def getoption(self, name: str) -> int:
1813 assert name == "verbose"
1814 return verbose
1815
1816 config = FakeConfig()
1817 assert _get_maxsize_for_saferepr(cast(Config, config)) == expected_size

Callers 5

test_nameMethod · 0.45
test_lenMethod · 0.45
test_custom_reprMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected