File: test_set_column.py

package info (click to toggle)
libxlsxwriter 1.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 37,888 kB
  • sloc: ansic: 65,861; python: 2,106; makefile: 693; perl: 229; sh: 224; xml: 168; cpp: 73; javascript: 5
file content (54 lines) | stat: -rw-r--r-- 1,741 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
###############################################################################
#
# Tests for libxlsxwriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright 2014-2026, John McNamara, jmcnamara@cpan.org.
#

import base_test_class

class TestCompareXLSXFiles(base_test_class.XLSXBaseTest):
    """
    Test file created with libxlsxwriter against a file created by Excel.

    """

    def test_set_column01(self):
        self.run_exe_test('test_set_column01')

    def test_set_column02(self):
        self.run_exe_test('test_set_column02', 'set_column01.xlsx')

    def test_set_column03(self):
        self.run_exe_test('test_set_column03')

    def test_set_column04(self):
        self.run_exe_test('test_set_column04')

    def test_set_column05(self):
        self.run_exe_test('test_set_column05')

    def test_set_column06(self):
        # TODO. Fix span calculation for this condition.
        self.ignore_elements = {'xl/worksheets/sheet1.xml': ['<row r="13"']}
        self.run_exe_test('test_set_column06')

    def test_set_column07(self):
        self.run_exe_test('test_set_column07')

    def test_set_column08(self):
        # TODO. Fix span calculation for this condition.
        self.ignore_elements = {'xl/worksheets/sheet1.xml': ['<row r="13"']}
        self.run_exe_test('test_set_column08')

    def test_set_column09(self):
        self.run_exe_test('test_set_column09')

    def test_set_column10(self):
        self.run_exe_test('test_set_column10', 'set_column01.xlsx')

    def test_set_column11(self):
        # TODO. Fix span calculation for this condition.
        self.ignore_elements = {'xl/worksheets/sheet1.xml': ['<row r="13"']}
        self.run_exe_test('test_set_column11', 'set_column06.xlsx')