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

Function test_comment_in_statement

testing/code/test_source.py:457–466  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

455
456
457def test_comment_in_statement() -> None:
458 source = """test(foo=1,
459 # comment 1
460 bar=2)
461"""
462 for line in range(1, 3):
463 assert (
464 str(getstatement(line, source))
465 == "test(foo=1,\n # comment 1\n bar=2)"
466 )
467
468
469def test_source_with_decorator() -> None:

Callers

nothing calls this directly

Calls 1

getstatementFunction · 0.85

Tested by

no test coverage detected