MCPcopy Create free account
hub / github.com/cdgriffith/Box / test_tabs_are_fine

Method test_tabs_are_fine

test/test_comments.py:438–441  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

436 Box(a=1).set_comment("a", f"x{char}y", position="before")
437
438 def test_tabs_are_fine(self):
439 bx = Box(a=1)
440 bx.set_comment("a", "x\ty")
441 assert Box.from_yaml(bx.to_yaml()).get_comment("a") == {"eol": "x\ty"}
442
443
444@pytest.mark.parametrize("count", [0, -1, -3])

Callers

nothing calls this directly

Calls 5

set_commentMethod · 0.95
to_yamlMethod · 0.95
BoxClass · 0.90
get_commentMethod · 0.45
from_yamlMethod · 0.45

Tested by

no test coverage detected