summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/tests.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py
index 15c54fe0d..0f7645ec8 100644
--- a/archaeological_finds/tests.py
+++ b/archaeological_finds/tests.py
@@ -626,7 +626,7 @@ class TreatmentWizardCreationTest(WizardTest, FindInit, TestCase):
class ImportFindTest(ImportTest, FindInit, TestCase):
fixtures = FIND_TOWNS_FIXTURES + [
- settings.ROOT_PATH + "../archaeological_finds/tests/import_loca_test.json",
+ settings.LIB_BASE_PATH + "archaeological_finds/tests/import_loca_test.json",
]
def setUp(self):
@@ -637,7 +637,7 @@ class ImportFindTest(ImportTest, FindInit, TestCase):
self._test_geo_import("importer-GIS-find", 1)
def _test_geo_import(self, data_name, new_nb):
- root = settings.ROOT_PATH + "../archaeological_finds/tests/"
+ root = settings.LIB_BASE_PATH + "archaeological_finds/tests/"
filename = root + data_name + ".zip"
self.restore_serialized(filename)
imp_type = ImporterType.objects.get(slug="topographie-mobilier")
@@ -706,11 +706,11 @@ class ImportFindTest(ImportTest, FindInit, TestCase):
target="documents__image", formater_type_id=formater.pk, column_id=col.pk
)
mcc_file = open(
- settings.ROOT_PATH + "../archaeological_finds/tests/MCC-finds-example.csv",
+ settings.LIB_BASE_PATH + "archaeological_finds/tests/MCC-finds-example.csv",
"rb",
)
mcc_images = open(
- settings.ROOT_PATH + "../archaeological_finds/tests/images.zip", "rb"
+ settings.LIB_BASE_PATH + "archaeological_finds/tests/images.zip", "rb"
)
file_dict = {
"imported_file": SimpleUploadedFile(mcc_file.name, mcc_file.read()),
@@ -1455,7 +1455,7 @@ class FindSearchTest(FindInit, TestCase, SearchText):
# add an image to the first find
document = Document.objects.create(title="Image!")
image_path = (
- settings.ROOT_PATH + "../ishtar_common/static/media/images/ishtar-bg.jpg"
+ settings.LIB_BASE_PATH + "ishtar_common/static/media/images/ishtar-bg.jpg"
)
document.image = SimpleUploadedFile(
name="ishtar-bg.jpg",
@@ -2177,7 +2177,7 @@ class TreatmentTest(FindInit, TestCase):
def setUp(self):
base_img = (
- settings.ROOT_PATH + "../ishtar_common/static/media/images/ishtar-bg.jpg"
+ settings.LIB_BASE_PATH + "ishtar_common/static/media/images/ishtar-bg.jpg"
)
temp_dir = tempfile.gettempdir()
img = os.path.join(temp_dir, "ishtar-bg.jpg")
@@ -2542,7 +2542,7 @@ class LabelTest(FindInit, TestCase):
def setUp(self):
templates = [
- settings.ROOT_PATH + "../archaeological_finds/tests/" + t
+ settings.LIB_BASE_PATH + "archaeological_finds/tests/" + t
for t in (
"etiquettes-mobilier.odt",
"etiquettes-mobilier",
@@ -2617,7 +2617,7 @@ class TemplateTest(FindInit, TestCase):
def setUp(self):
template = (
- settings.ROOT_PATH + "../archaeological_finds/tests/notices-panier.odt"
+ settings.LIB_BASE_PATH + "archaeological_finds/tests/notices-panier.odt"
)
filename = template.split("/")[-1]
shutil.copy(