summaryrefslogtreecommitdiff
path: root/archaeological_finds/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r--archaeological_finds/tests.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py
index 2d6b85b1a..76e6764b2 100644
--- a/archaeological_finds/tests.py
+++ b/archaeological_finds/tests.py
@@ -245,6 +245,9 @@ 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}"
+ model = models.Find
form_datas = [
FormData(
'Find creation',
@@ -302,6 +305,7 @@ class FindWizardDeletionWithWarehouseModTest(WizardTest, FindInit, TestCase):
url_name = 'find_deletion'
wizard_name = 'find_deletion_wizard'
steps = views.find_deletion_steps
+ redirect_url = "/{}/selecw-{}".format(url_name, url_name)
form_datas = [
FormData(
'Find deletion',
@@ -319,7 +323,7 @@ class FindWizardDeletionWithWarehouseModTest(WizardTest, FindInit, TestCase):
profile.save()
find, bf = self.get_default_find(force=True)
- self.form_datas[0].set('selecw', 'pk', find.pk)
+ self.form_datas[0].set('selecw', 'pks', find.pk)
self.find_number = models.Find.objects.count()
super(FindWizardDeletionWithWarehouseModTest, self).pre_wizard()
@@ -333,6 +337,8 @@ class TreatmentWizardCreationTest(WizardTest, FindInit, TestCase):
url_name = 'treatment_creation'
wizard_name = 'treatment_wizard'
steps = views.treatment_wizard_steps
+ redirect_url = "/treatment_search/general-treatment_search?" \
+ "open_item={last_id}"
form_datas = [
FormData(
'Move treatment (planned)',