MCPcopy Index your code
hub / github.com/faust-streaming/faust / test_tabulate__when_json

Method test_tabulate__when_json

tests/unit/cli/test_base.py:387–397  ·  view source on GitHub ↗
(self, *, command)

Source from the content-addressed store, hash-verified

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 = [

Callers

nothing calls this directly

Calls 2

tabulateMethod · 0.80
loadsMethod · 0.45

Tested by

no test coverage detected