Beispiel #1
0
def test_skip_empty_line_1():
    data = read_table(os.path.join(TDATA_ROOT, 'empty-line-1.txt'), None, None,
                      1)
    assert (data == [['a', 'b', 'c'], ['1', '2', '3']])
Beispiel #2
0
def test_skip_empty_line_1():
    data = read_table(os.path.join(TDATA_ROOT, 'empty-line-1.txt'), None, None, 1)
    assert(data == [['a', 'b', 'c'], ['1', '2', '3']])
Beispiel #3
0
def test_hash_headers():
    data = read_table(os.path.join(TDATA_ROOT, 'hash-headers.txt'), None, None,
                      1)
    assert (data == [['a', 'b', 'c'], ['1', '2', '3']])
Beispiel #4
0
def test_hash_headers():
    data = read_table(os.path.join(TDATA_ROOT, 'hash-headers.txt'), None, None, 1)
    assert(data == [['a', 'b', 'c'], ['1', '2', '3']])
Beispiel #5
0
def test_xls_read():
    data, _ = read_table(os.path.join(TDATA_ROOT, 'simple.xls'), None, None, 1)
    assert (data == [['a', 'b', 'c'], [1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
Beispiel #6
0
def test_xls_fallback():
    data, _ = read_table(os.path.join(TDATA_ROOT, 'not-xls.xls'), None, None,
                         1)
    assert (data == [['a', 'b', 'c'], ['1', '2', '3'], ['4', '5', '6']])
Beispiel #7
0
def test_xls_read():
    data, _ = read_table(os.path.join(TDATA_ROOT, 'simple.xls'), None, None, 1)
    assert(data == [['a', 'b', 'c'], [1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
Beispiel #8
0
def test_xls_fallback():
    data, _ = read_table(os.path.join(TDATA_ROOT, 'not-xls.xls'), None, None, 1)
    assert(data == [['a', 'b', 'c'], ['1', '2', '3'], ['4', '5', '6']])