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

Merge branch 'logging-setup' into tmp

parents 6d57103e 498b51ac
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ from tempfile import NamedTemporaryFile ...@@ -23,7 +23,7 @@ from tempfile import NamedTemporaryFile
import numpy as np import numpy as np
import pandas as pd import pandas as pd
from caosadvancedtools.datainconsistency import DataInconsistencyError from caosadvancedtools.datainconsistency import DataInconsistencyError
from caosadvancedtools.table_importer import (XLS_Importer, name_converter, from caosadvancedtools.table_importer import (XLS_Importer, assure_name_format,
yes_no_converter) yes_no_converter)
...@@ -40,9 +40,10 @@ class ConverterTest(unittest.TestCase): ...@@ -40,9 +40,10 @@ class ConverterTest(unittest.TestCase):
self.assertRaises(ValueError, yes_no_converter, "True") self.assertRaises(ValueError, yes_no_converter, "True")
self.assertRaises(ValueError, yes_no_converter, "true") self.assertRaises(ValueError, yes_no_converter, "true")
def test_name_converter(self): def test_assure_name_format(self):
self.assertEqual(name_converter("Müstermann, Max"), "Müstermann, Max") self.assertEqual(assure_name_format("Müstermann, Max"),
self.assertRaises(ValueError, name_converter, "Max Mustermann") "Müstermann, Max")
self.assertRaises(ValueError, assure_name_format, "Max Mustermann")
class XLS_ImporterTest(unittest.TestCase): class XLS_ImporterTest(unittest.TestCase):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment