33 lines
800 B
Python
33 lines
800 B
Python
"""
|
|
|
|
This file keeps all fixes for issues found
|
|
|
|
"""
|
|
|
|
import os
|
|
import pyexcel as pe
|
|
from pyexcel_xls import save_data
|
|
from _compact import OrderedDict
|
|
import datetime
|
|
|
|
|
|
class TestBugFix:
|
|
def test_pyexcel_issue_5(self):
|
|
"""pyexcel issue #5
|
|
|
|
datetime is not properly parsed
|
|
"""
|
|
s = pe.load(os.path.join("tests",
|
|
"test-fixtures",
|
|
"test-date-format.xls"))
|
|
assert s[0, 0] == datetime.datetime(2015, 11, 11, 11, 12, 0)
|
|
|
|
def test_pyexcel_xls_issue_2(self):
|
|
data = OrderedDict()
|
|
array = []
|
|
for i in range(4100):
|
|
array.append([datetime.datetime.now()])
|
|
data.update({"test": array})
|
|
save_data("test.xls", data)
|
|
os.unlink("test.xls")
|