Skip to content

Commit

Permalink
fix: testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
cupen committed Mar 26, 2024
1 parent 4f826b0 commit 40b8e67
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@
from conftest import testdata_dir
import openpyxl
from openpyxl.styles import Font, Color
# import pytest

excel_dir = os.path.join(testdata_dir, "_excel")
excel_files = [
os.path.join(excel_dir, "test-default.xlsx"),
os.path.join(excel_dir, "test-data-row.xlsx"),
]

# @pytest.fixture(scope="module")
def setup_module():
os.makedirs(excel_dir, exist_ok=True)
pass


def F(fname):
return os.path.join(excel_dir, fname)
Expand Down Expand Up @@ -54,6 +60,7 @@ def test_datarow():


def gen_default():
setup_module()
w = openpyxl.Workbook()
s = w.create_sheet(title="auto")
s.append(["key", "type", "value"])
Expand Down Expand Up @@ -83,6 +90,7 @@ def gen_default():


def gen_datarow():
setup_module()
w = openpyxl.Workbook()
s = w.create_sheet(title="auto")
s.append(["key", "type", "value"])
Expand Down

0 comments on commit 40b8e67

Please sign in to comment.