summaryrefslogtreecommitdiff
path: root/ishtar_common/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-09-09 16:05:49 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:20:58 +0100
commit16512652b69b7b14a6f0ff76a95b990763f37f15 (patch)
tree97b99b2ebc78e70a133839a6447e3a2d208c9843 /ishtar_common/tests.py
parente8472937c192bcce28a7a112fdf7a420e7486cfc (diff)
downloadIshtar-16512652b69b7b14a6f0ff76a95b990763f37f15.tar.bz2
Ishtar-16512652b69b7b14a6f0ff76a95b990763f37f15.zip
Migration to Django 2.2 - fixes
- restore serialized - manage protected data (do not delete) - fix path raising suspicious operation (use relative path)
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r--ishtar_common/tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py
index 1b430cacd..fed0ccf58 100644
--- a/ishtar_common/tests.py
+++ b/ishtar_common/tests.py
@@ -2409,8 +2409,7 @@ class ImportTest(TestCase):
klass="ishtar_common.models.Person", name="Person"
)
importer_type = models.ImporterType.objects.create(associated_models=imp_model)
-
- dest = os.path.join(settings.MEDIA_ROOT, "MCC-operations-example.csv")
+ dest = os.path.join("media", "MCC-operations-example.csv")
shutil.copy(
settings.ROOT_PATH
+ "../archaeological_operations/tests/MCC-operations-example.csv",