(self)
| 298 | assert cb.to_yaml() == "host: y # renamed later\n" |
| 299 | |
| 300 | def test_camel_killer_keys(self): |
| 301 | bx = Box.from_yaml("loadBalancer: x # lb\n", camel_killer_box=True) |
| 302 | assert bx.get_comment("load_balancer") == {"eol": "lb"} |
| 303 | assert bx.get_comment("loadBalancer") == {"eol": "lb"} |
| 304 | assert bx.to_yaml() == "load_balancer: x # lb\n" |
| 305 | |
| 306 | def test_box_dots_split_keys_lose_comments_safely(self): |
| 307 | bx = Box.from_yaml("a.b: 1 # dotted\n", box_dots=True, default_box=True) |
nothing calls this directly
no test coverage detected