diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-16 16:29:55 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-16 16:29:55 +0100 |
commit | 9b75c3886c03a7138a59add87ba99cfc5a2ad823 (patch) | |
tree | 8eeeb79739756faac270a0e363945d60dd5398d5 /archaeological_finds/tests.py | |
parent | bd7a3852408ef36d01ef9310815e9c66d23e6a1b (diff) | |
download | Ishtar-9b75c3886c03a7138a59add87ba99cfc5a2ad823.tar.bz2 Ishtar-9b75c3886c03a7138a59add87ba99cfc5a2ad823.zip |
tests: fix find wizard test
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r-- | archaeological_finds/tests.py | 3 |
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() |