cr-connect-workflow/tests/test_dmn_from_spreadsheet.py

23 lines
538 B
Python
Raw Normal View History

2021-08-02 14:04:47 +00:00
from tests.base_test import BaseTest
2021-09-02 13:57:01 +00:00
from crc import app
from crc.api.file import dmn_from_ss
from crc.services.file_service import FileService
2021-09-02 13:57:01 +00:00
import io
import os
2021-08-02 14:04:47 +00:00
2021-09-02 13:57:01 +00:00
class TestDMNFromSS(BaseTest):
def test_dmn_from_ss(self):
filepath = os.path.join(app.root_path, '..', 'tests', 'data',
'dmn_from_spreadsheet', 'large_test_spreadsheet.xlsx')
f_handle = open(filepath, 'br')
ss_data = f_handle.read()
result = dmn_from_ss(ss_data)
print('test_dmn_from_ss')