(self)
| 139 | assert bx.get_comment("a") == {"eol": "already commented"} |
| 140 | |
| 141 | def test_document_comments(self): |
| 142 | bx = Box(a=1) |
| 143 | bx.set_comment(None, "header\n\nmore") |
| 144 | bx.set_comment(None, "footer", position="end") |
| 145 | assert bx.to_yaml() == "# header\n\n# more\na: 1\n# footer\n" |
| 146 | bx.del_comment() |
| 147 | assert bx.to_yaml() == "a: 1\n" |
| 148 | |
| 149 | @pytest.mark.parametrize( |
| 150 | "args, error", |
nothing calls this directly
no test coverage detected