From 19776a723d63dd8b4acb41ea2e7294a6513eac15 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 31 Aug 2017 12:55:46 +0200 Subject: Fix test intitilization for imports --- archaeological_finds/tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'archaeological_finds/tests.py') diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index a128b05ff..3e89273a0 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -287,8 +287,9 @@ class ImportFindTest(ImportTest, TestCase): 'imported_images': SimpleUploadedFile(mcc_images.name, mcc_images.read())} post_dict = {'importer_type': MCC.pk, 'skip_lines': 1, - "encoding": 'utf-8'} - form = forms_common.NewImportForm(data=post_dict, files=file_dict) + "encoding": 'utf-8', "name": 'init_find_import'} + form = forms_common.NewImportForm(data=post_dict, files=file_dict, + user=self.user) form.is_valid() self.assertTrue(form.is_valid()) impt = form.save(self.ishtar_user) -- cgit v1.2.3