Commit 5f44b381 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

check errors are found with import_later

parent 3a8dbe5d
......@@ -244,6 +244,14 @@ class DataFileReaderTestCase(TestCase):
self.assertRaises(ValueError, business_process.import_file, data_source=data_source, file=filename)
business_process.import_file(data_source=data_source, file=filename, importation_observer=ImportationObserver())
def test_import_in_db_later(self):
filename = os.path.join(self.test_data, "duplicated_empty_invalid.xlsx")
errors, _ = business_process.import_file_later(file=filename)
[s[:s.index("]") + 1] for s in errors],
['[ImportErr1]', '[ImportErr1]', '[ImportErr3]', '[ImportErr3]', '[ImportErr2]', ],
class DataFileReaderWithIdentifierTestCase(TestCase):
test_data = "./test_data"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment