Skip to content
Snippets Groups Projects
Commit 52b3800e authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

TST: fix tests

parent d0c7c691
No related branches found
No related tags found
4 merge requests!100WIP: Filling XLSX: Seems to be working.,!94ENH: add framework for converting json schema into table templates,!93Filling XLSX: Everything except multiple choice.,!92ENH: xlsx template generator
No preview for this file type
......@@ -38,11 +38,12 @@ def rfp(*pathcomponents):
def test_detect():
example = load_workbook(rfp("example_template.xlsx"))
assert 1 == _get_row_type_column(example['Person'])
assert [2,3,4] == _get_path_rows(example['Person'])
assert [2, 3] == _get_path_rows(example['Person'])
def test_fill_xlsx():
path = os.path.join(tempfile.mkdtemp(), 'test.xlsx')
assert not os.path.exists(path)
fill_template(rfp('example_template.xlsx'), rfp('example.json'), path )
fill_template(rfp('example_template.xlsx'), rfp('example.json'), path)
assert os.path.exists(path)
generated = load_workbook(path) # workbook can be read
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment