Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Jan 14, 2025
1 parent 70cbe1c commit 4b100b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions xlsxlite/test/test_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions xlsxlite/test/test_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", "[email protected]"), ("Bob", "[email protected]")])
self.assertExcelSheet(sheet3, [()])
self.assertExcelSheet(sheet3, [])

def test_cell_types(self):
d1 = datetime(2013, 1, 1, 12, 0, 0)
Expand Down

0 comments on commit 4b100b3

Please sign in to comment.