MCPcopy Create free account
hub / github.com/apify/crawlee-python / test_two_columns

Function test_two_columns

tests/unit/_utils/test_console.py:21–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20
21def test_two_columns() -> None:
22 data = [('Name', 'Age'), ('Alice', '30'), ('Bob', '25')]
23 result = make_table(data)
24 lines = result.split('\n')
25 # fmt: off
26 assert lines == ['┌───────┬─────┐',
27 '│ Name │ Age │',
28 '│ Alice │ 30 │',
29 '│ Bob │ 25 │',
30 '└───────┴─────┘']
31 # fmt: on
32
33
34def test_long_content_truncation() -> None:

Callers

nothing calls this directly

Calls 1

make_tableFunction · 0.90

Tested by

no test coverage detected