libxlsxwriter/test/functional/test_optimize.py
John McNamara 5c160dd4e8 Added worksheet_write_rich_string_html() function.
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().
2020-08-21 21:20:23 +01:00

63 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 writing a workbook in optimization/constant memory mode.
"""
def test_optimize01(self):
self.run_exe_test('test_optimize01')
def test_optimize02(self):
self.run_exe_test('test_optimize02')
def test_optimize04(self):
self.run_exe_test('test_optimize04')
def test_optimize05(self):
self.run_exe_test('test_optimize05')
def test_optimize06(self):
self.run_exe_test('test_optimize06')
def test_optimize08(self):
self.run_exe_test('test_optimize08')
# Skip some of the XlsxWriter tests until the required functionality is ported.
def test_optimize13(self):
self.run_exe_test('test_optimize13')
def test_optimize14(self):
self.run_exe_test('test_optimize14')
def test_optimize21(self):
self.run_exe_test('test_optimize21')
def test_optimize22(self):
self.run_exe_test('test_optimize22')
def test_optimize23(self):
self.run_exe_test('test_optimize23')
def test_optimize24(self):
self.run_exe_test('test_optimize24')
def test_optimize25(self):
self.run_exe_test('test_optimize25')
def test_optimize26(self):
self.run_exe_test('test_optimize26')
# Test the worksheet_rich_string_html() function.
def test_optimize54(self):
self.run_exe_test('test_optimize54', 'optimize04.xlsx')