(self, *, command)
| 385 | assert command.tabulate(data, headers=None, wrap_last_row=False) |
| 386 | |
| 387 | def test_tabulate__when_json(self, *, command): |
| 388 | command.json = True |
| 389 | data = [ |
| 390 | ["A", "B", "C"], |
| 391 | ["D", "E", "F"], |
| 392 | ] |
| 393 | headers = ["a", "b", "c"] |
| 394 | assert json.loads(command.tabulate(data, headers=headers)) == [ |
| 395 | {"a": "A", "b": "B", "c": "C"}, |
| 396 | {"a": "D", "b": "E", "c": "F"}, |
| 397 | ] |
| 398 | |
| 399 | def test_tabulate_json(self, *, command): |
| 400 | data = [ |