summaryrefslogtreecommitdiffstats
path: root/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 4b030d3..691f558 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -182,7 +182,8 @@ def forwardfile_1(fake_conf, db, atreal_openads, collectivite_1):
orig_filename=os.path.basename(fake_conf['TEST_FILE_CERFA_DIA']),
content_type='application/pdf',
file_hash='ffdf456fdsvgb4bgfb6g4f5b',
- upload_file=File(open(fake_conf['TEST_FILE_CERFA_DIA'], 'rb')),
+ upload_file=File(open(fake_conf['TEST_FILE_CERFA_DIA'], 'rb'),
+ name=os.path.basename(fake_conf['TEST_FILE_CERFA_DIA'])),
upload_status='pending'
)
@@ -200,7 +201,8 @@ def forwardfile_2(fake_conf, connecteur=None, collectivite=None):
orig_filename=os.path.basename(fake_conf['TEST_FILE_CERFA_DIA']),
content_type='application/pdf',
file_hash='ffdf456fdsvgb4bgfb6g4f5b',
- upload_file=File(open(fake_conf['TEST_FILE_CERFA_DIA'], 'rb')),
+ upload_file=File(open(fake_conf['TEST_FILE_CERFA_DIA'], 'rb'),
+ name=os.path.basename(fake_conf['TEST_FILE_CERFA_DIA'])),
upload_status='pending'
)