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

TST: allow to run test_table_converter without odf package

parent 98b1878f
No related branches found
No related tags found
1 merge request!53Release 0.1
Pipeline #26505 passed with warnings
...@@ -103,7 +103,10 @@ def crawler(): ...@@ -103,7 +103,10 @@ def crawler():
def test_convert_table(converter_registry): def test_convert_table(converter_registry):
for file_ext in ["xlsx", "ods", "csv", "tsv"]: extentions = ["xlsx", "csv", "tsv"]
if importlib.util.find_spec("odf") is not None:
extentions.append("ods")
for file_ext in extentions:
def_opt = {"skiprows": ["1", "2"], "header": 0} def_opt = {"skiprows": ["1", "2"], "header": 0}
if file_ext == "tsv": if file_ext == "tsv":
def_opt["sep"] = "\t" def_opt["sep"] = "\t"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment