Completed
Push — master ( 994204...c77e35 )
by Kolen
02:07 queued 01:03
created

test_convert2table()   A

Complexity

Conditions 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
#!/usr/bin/env python3
2
"""
3
`header` and `markdown` is checked by `test_to_bool` instead
4
"""
5
from .context import convert2table, main
6
7
8
def test_convert2table():
9
    data = r'''
10
1,2
11
3,4
12
'''
13
    table = convert2table({'width': [0, 0]}, data)
14
    assert str(table) == "Table(TableRow(TableCell(Plain(Str(1))) TableCell(Plain(Str(2)))) TableRow(TableCell(Plain(Str(3))) TableCell(Plain(Str(4)))); alignment=['AlignDefault', 'AlignDefault'], width=[0.0, 0.0], rows=2, cols=2)"
15
    return
16