summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_finds/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py
index 2f871ae23..181ca12d0 100644
--- a/archaeological_finds/tests.py
+++ b/archaeological_finds/tests.py
@@ -272,7 +272,8 @@ class TreatmentWizardCreationTest(WizardTest, FindInit, TestCase):
person = Person.objects.create(name="default")
person.id = 1
person.save()
- self.create_finds({"label": u"Find 1"}, force=True)
+ if not models.Find.objects.filter(pk=1).count():
+ self.create_finds({"pk": 1, "label": u"Find 1"}, force=True)
self.treatment_number = models.Treatment.objects.count()
super(TreatmentWizardCreationTest, self).pre_wizard()