diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-16 13:41:49 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-16 13:41:49 +0100 |
commit | bd7a3852408ef36d01ef9310815e9c66d23e6a1b (patch) | |
tree | 6a491fad6af865d4e74561f9cc86b8c7f049955d /archaeological_finds/tests.py | |
parent | 6273dc9140add231e66b177c0cf69afd78d961e4 (diff) | |
download | Ishtar-bd7a3852408ef36d01ef9310815e9c66d23e6a1b.tar.bz2 Ishtar-bd7a3852408ef36d01ef9310815e9c66d23e6a1b.zip |
Fix find test
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r-- | archaeological_finds/tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index e7afcbf66..2f871ae23 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -23,6 +23,7 @@ from django.test import TestCase from ishtar_common.models import ImporterType, IshtarUser, ImporterColumn,\ FormaterType, ImportTarget +from ishtar_common.models import Person from archaeological_finds import models, views from archaeological_warehouse.models import Warehouse, WarehouseType @@ -266,6 +267,11 @@ class TreatmentWizardCreationTest(WizardTest, FindInit, TestCase): name="default", warehouse_type=WarehouseType.objects.all()[0]) warehouse.id = 1 warehouse.save() + q = Person.objects.filter(pk=1) + if not q.count(): + person = Person.objects.create(name="default") + person.id = 1 + person.save() self.create_finds({"label": u"Find 1"}, force=True) self.treatment_number = models.Treatment.objects.count() super(TreatmentWizardCreationTest, self).pre_wizard() |