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

Class AssertionState

src/_pytest/assertion/__init__.py:80–86  ·  view source on GitHub ↗

State for the assertion plugin.

Source from the content-addressed store, hash-verified

78
79
80class AssertionState:
81 """State for the assertion plugin."""
82
83 def __init__(self, config: Config, mode) -> None:
84 self.mode = mode
85 self.trace = config.trace.root.get("assertion")
86 self.hook: Optional[rewrite.AssertionRewritingHook] = None
87
88
89def install_importhook(config: Config) -> rewrite.AssertionRewritingHook:

Callers 3

test_write_pycMethod · 0.90
test_read_pyc_successMethod · 0.90
install_importhookFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_write_pycMethod · 0.72
test_read_pyc_successMethod · 0.72