summaryrefslogtreecommitdiff
path: root/archaeological_finds/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-06-26 20:45:27 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-06-27 10:59:42 +0200
commit99c1cf4746bbb4149f7447244b8f0c28309af3d1 (patch)
treeac0ef41160b65f16bbb03c2796a92dc09637c3ec /archaeological_finds/tests.py
parent66f6d4951bc7cd801757feca3b4a403ebedb2d64 (diff)
downloadIshtar-99c1cf4746bbb4149f7447244b8f0c28309af3d1.tar.bz2
Ishtar-99c1cf4746bbb4149f7447244b8f0c28309af3d1.zip
✅ fix tests
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r--archaeological_finds/tests.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py
index c36327bae..8e1c3f970 100644
--- a/archaeological_finds/tests.py
+++ b/archaeological_finds/tests.py
@@ -283,7 +283,10 @@ class FindWizardCreationTest(WizardTest, FindInit, TestCase):
url_name = "find_creation"
wizard_name = "find_wizard"
steps = views.find_creation_steps
- redirect_url = "/find_modification/selec-find_modification?open_item=" "{last_id}"
+ redirect_url = [
+ "/find_modification/selec-find_modification?open_item={last_id}",
+ "/find_modification/selecw-find_modification?open_item={last_id}",
+ ]
model = models.Find
form_datas = [
FormData(
@@ -1178,6 +1181,7 @@ class FindTest(FindInit, TestCase):
cr = ContextRecord.objects.get(pk=base_find.context_record.pk)
cr.label = "new-label-too"
cr.skip_history_when_saving = True
+ cr._no_down_model_update = False
cr.save()
base_find = models.BaseFind.objects.get(pk=base_find.pk)
find = models.Find.objects.get(pk=find.pk)
@@ -1187,6 +1191,7 @@ class FindTest(FindInit, TestCase):
cr.operation.code_patriarche = "PAT"
cr.operation.skip_history_when_saving = True
+ cr.operation._no_down_model_update = False
cr.operation.save()
base_find = models.BaseFind.objects.get(pk=base_find.pk)
find = models.Find.objects.get(pk=find.pk)