diff --git a/xlsxlite/test/test_perf.py b/xlsxlite/test/test_perf.py index 0220101..679918d 100644 --- a/xlsxlite/test/test_perf.py +++ b/xlsxlite/test/test_perf.py @@ -4,8 +4,8 @@ import xlsxwriter from openpyxl import Workbook -from openpyxl.worksheet.write_only import WriteOnlyCell -from openpyxl.writer.etree_worksheet import etree_write_cell +from openpyxl.cell.cell import WriteOnlyCell +from openpyxl.cell._writer import etree_write_cell from unittest.mock import patch from xlsxlite.writer import XLSXBook from .base import tests_dir # noqa @@ -32,7 +32,7 @@ def test_xlxslite(): @pytest.mark.usefixtures("tests_dir") -@patch("openpyxl.worksheet.write_only.write_cell") +@patch("openpyxl.cell._writer.write_cell") def test_openpyxl_etree(mock_write_cell): mock_write_cell.side_effect = etree_write_cell diff --git a/xlsxlite/test/test_writer.py b/xlsxlite/test/test_writer.py index 701fc59..38a644f 100644 --- a/xlsxlite/test/test_writer.py +++ b/xlsxlite/test/test_writer.py @@ -40,9 +40,9 @@ def test_simple(self): assert sheet2.title == "People" assert sheet3.title == "Empty" - self.assertExcelSheet(sheet1, [()]) + self.assertExcelSheet(sheet1, []) self.assertExcelSheet(sheet2, [("Name", "Email"), ("Jim", "jim@acme.com"), ("Bob", "bob@acme.com")]) - self.assertExcelSheet(sheet3, [()]) + self.assertExcelSheet(sheet3, []) def test_cell_types(self): d1 = datetime(2013, 1, 1, 12, 0, 0)