summaryrefslogtreecommitdiff
path: root/ishtar_common/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r--ishtar_common/tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py
index 6cd6db9e3..8726dc559 100644
--- a/ishtar_common/tests.py
+++ b/ishtar_common/tests.py
@@ -2545,10 +2545,15 @@ class ImportTest(TestCase):
imp_model = self.create_importer_model()
importer_type = self.create_importer_type(imp_model)
+ csv_path = os.path.join(LIB_BASE_PATH, "ishtar_common", "tests", "insee-test.csv")
data = {
"name": "Test Name",
"importer_type": importer_type.pk,
+ "imported_file": SimpleUploadedFile(
+ name="insee-test.csv",
+ content=open(csv_path, "rb").read(),
+ ),
"encoding": "utf-8",
"csv_sep": '|',
"skip_lines": 1,