初始化PHP-Xlswrite扩展

This commit is contained in:
ykxiao
2024-03-05 10:01:08 +08:00
commit 879cf9584d
2483 changed files with 1054962 additions and 0 deletions

View File

@ -0,0 +1,44 @@
###############################################################################
#
# Tests for libxlsxwriter.
#
# Copyright 2014-2021, John McNamara, jmcnamara@cpan.org
#
import os
import pytest
import base_test_class
class TestCompareXLSXFiles(base_test_class.XLSXBaseTest):
"""
Test file created with libxlsxwriter against a file created by Excel.
"""
def test_background01(self):
self.run_exe_test('test_background01')
def test_background02(self):
self.run_exe_test('test_background02')
def test_background03(self):
self.run_exe_test('test_background03')
@pytest.mark.skipif(os.environ.get('USE_NO_MD5'), reason="compiled without MD5 support")
def test_background04(self):
self.run_exe_test('test_background04')
def test_background05(self):
self.run_exe_test('test_background05')
def test_background06(self):
self.ignore_elements = {'xl/worksheets/sheet1.xml': ['<pageSetup']}
self.run_exe_test('test_background06')
def test_background07(self):
self.ignore_elements = {'xl/worksheets/sheet1.xml': ['<pageSetup']}
self.run_exe_test('test_background07')
# Same as background02 except with an image buffer.
def test_background52(self):
self.run_exe_test('test_background52', 'background02.xlsx')