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

Method test_dont_rewrite

testing/test_assertrewrite.py:136–141  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 assert n.end_col_offset == 3
135
136 def test_dont_rewrite(self) -> None:
137 s = """'PYTEST_DONT_REWRITE'\nassert 14"""
138 m = rewrite(s)
139 assert len(m.body) == 2
140 assert isinstance(m.body[1], ast.Assert)
141 assert m.body[1].msg is None
142
143 def test_dont_rewrite_plugin(self, pytester: Pytester) -> None:
144 contents = {

Callers

nothing calls this directly

Calls 1

rewriteFunction · 0.85

Tested by

no test coverage detected