From 16512652b69b7b14a6f0ff76a95b990763f37f15 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 9 Sep 2021 16:05:49 +0200 Subject: Migration to Django 2.2 - fixes - restore serialized - manage protected data (do not delete) - fix path raising suspicious operation (use relative path) --- ishtar_common/tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ishtar_common/tests.py') 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", -- cgit v1.2.3