mirror of
https://github.com/jmcnamara/libxlsxwriter
synced 2025-03-28 21:13:14 +00:00

Added workaround/optimized worksheet_write_rich_string_html() function to write raw rich string html. This avoid an expensive file open()/close() in each call to worksheet_write_rich_string().
59 lines
1.6 KiB
Python
59 lines
1.6 KiB
Python
###############################################################################
|
|
#
|
|
# Tests for libxlsxwriter.
|
|
#
|
|
# Copyright 2014-2020, 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_rich_string01(self):
|
|
self.run_exe_test('test_rich_string01')
|
|
def test_rich_string02(self):
|
|
|
|
self.run_exe_test('test_rich_string02')
|
|
|
|
def test_rich_string03(self):
|
|
self.run_exe_test('test_rich_string03')
|
|
|
|
def test_rich_string04(self):
|
|
self.run_exe_test('test_rich_string04')
|
|
|
|
def test_rich_string05(self):
|
|
self.run_exe_test('test_rich_string05')
|
|
|
|
def test_rich_string06(self):
|
|
self.run_exe_test('test_rich_string06')
|
|
|
|
def test_rich_string07(self):
|
|
self.run_exe_test('test_rich_string07')
|
|
|
|
def test_rich_string08(self):
|
|
self.run_exe_test('test_rich_string08')
|
|
|
|
def test_rich_string09(self):
|
|
self.run_exe_test('test_rich_string09')
|
|
|
|
def test_rich_string10(self):
|
|
self.run_exe_test('test_rich_string10')
|
|
|
|
def test_rich_string11(self):
|
|
self.run_exe_test('test_rich_string11')
|
|
|
|
def test_rich_string12(self):
|
|
self.run_exe_test('test_rich_string12')
|
|
|
|
# Test the worksheet_rich_string_html() function.
|
|
def test_rich_string51(self):
|
|
self.run_exe_test('test_rich_string51', 'rich_string01.xlsx')
|
|
|
|
def test_rich_string55(self):
|
|
self.run_exe_test('test_rich_string55', 'rich_string05.xlsx')
|