failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · Textualize/rich
(not found in data/tasks.jsonl)
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
.........F
=================================== FAILURES ===================================
_ test_table_show_header_false_substitution[box1-\u250c\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2510\n\u2502 1 \u2502 2 \u2502\n\u2502 3 \u2502 4 \u2502\n\u2514\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2518\n] _
box = Box(...), result = '┌───┬───┐\n│ 1 │ 2 │\n│ 3 │ 4 │\n└───┴───┘\n'
@pytest.mark.parametrize(
"box,result",
[
(None, " 1 2 \n 3 4 \n"),
(box.HEAVY_HEAD, "┌───┬───┐\n│ 1 │ 2 │\n│ 3 │ 4 │\n└───┴───┘\n"),
(box.SQUARE_DOUBLE_HEAD, "┌───┬───┐\n│ 1 │ 2 │\n│ 3 │ 4 │\n└───┴───┘\n"),
(box.MINIMAL_DOUBLE_HEAD, " ╷ \n 1 │ 2 \n 3 │ 4 \n ╵ \n"),
(box.MINIMAL_HEAVY_HEAD, " ╷ \n 1 │ 2 \n 3 │ 4 \n ╵ \n"),
(box.ASCII_DOUBLE_HEAD, "+---+---+\n| 1 | 2 |\n| 3 | 4 |\n+---+---+\n"),
],
)
def test_table_show_header_false_substitution(box, result):
"""When the box style is one with a custom header edge, it should be substituted for
the equivalent box that does not have a custom header when show_header=False"""
table = Table(show_header=False, box=box)
table.add_column()
table.add_column()
table.add_row("1", "2")
table.add_row("3", "4")
console = Console(record=True)
console.print(table)
output = console.export_text()
> assert output == result
E AssertionError: assert '┏━━━┳━━━┓\n┃...\n└───┴───┘\n' == '┌───┬───┐\n│...\n└───┴───┘\n'
E
E - ┌───┬───┐
E - │ 1 │ 2 │
E + ┏━━━┳━━━┓
E + ┃ 1 ┃ 2 ┃
E │ 3 │ 4 │
E └───┴───┘
tests/test_table.py:209: AssertionError
----------------------------- Captured stdout call -----------------------------
┏━━━┳━━━┓
┃ 1 ┃ 2 ┃
│ 3 │ 4 │
└───┴───┘
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 9 passed in 0.12s