diff options
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 |
commit | 12f02e8dbf3350dfb2de509a0ad2911a4edcb344 (patch) | |
tree | 97b99b2ebc78e70a133839a6447e3a2d208c9843 /ishtar_common/tests.py | |
parent | da54a1068cc89abf479f57e0b78651e30df3dcc4 (diff) | |
download | Ishtar-12f02e8dbf3350dfb2de509a0ad2911a4edcb344.tar.bz2 Ishtar-12f02e8dbf3350dfb2de509a0ad2911a4edcb344.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.py | 3 |
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", |