MCPcopy
hub / github.com/pytest-dev/pytest / AssertionState

Class AssertionState

src/_pytest/assertion/__init__.py:120–126  ·  view source on GitHub ↗

State for the assertion plugin.

Source from the content-addressed store, hash-verified

118
119
120class AssertionState:
121 """State for the assertion plugin."""
122
123 def __init__(self, config: Config, mode) -> None:
124 self.mode = mode
125 self.trace = config.trace.root.get("assertion")
126 self.hook: rewrite.AssertionRewritingHook | None = None
127
128
129def 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