diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-20 18:18:44 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-20 18:18:44 +0100 |
commit | 2ea51d570a9728d604ec136185f9ad5c9d8f792b (patch) | |
tree | 9040f7dbace615584cb456bf5ffedc9ef9dc4a7a /archaeological_finds/tests.py | |
parent | 8b2ce8ee16a8ce40c09c5e5cb7bd9e8cd48a3368 (diff) | |
download | Ishtar-2ea51d570a9728d604ec136185f9ad5c9d8f792b.tar.bz2 Ishtar-2ea51d570a9728d604ec136185f9ad5c9d8f792b.zip |
Fix find test
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r-- | archaeological_finds/tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index 4153a79ad..20c0604d5 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -120,7 +120,9 @@ class AFindWizardCreationTest(WizardTest, FindInit, TestCase): q = ContextRecord.objects.filter(pk=1) if not q.count(): cr = self.create_context_record()[0] - cr.pk = 1 + cr.operation = self.create_operation()[0] + self.form_datas[0].form_datas['selecrecord-find_creation'][ + 'pk'] = cr.pk cr.save() self.find_number = models.Find.objects.count() self.basefind_number = models.BaseFind.objects.count() |