summaryrefslogtreecommitdiff
path: root/archaeological_finds/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-16 11:32:18 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-16 11:32:18 +0200
commit9df28c0281f7736ffe967ad6d7f96b1328b8d101 (patch)
treea67d69ffb08bc9a472e77c965e664c5b13e61420 /archaeological_finds/tests.py
parent98bcfe7fd11d2b5bf15cae670f10bb379e660e08 (diff)
downloadIshtar-9df28c0281f7736ffe967ad6d7f96b1328b8d101.tar.bz2
Ishtar-9df28c0281f7736ffe967ad6d7f96b1328b8d101.zip
Fix test
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r--archaeological_finds/tests.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py
index 2ce2c371b..3d33cf693 100644
--- a/archaeological_finds/tests.py
+++ b/archaeological_finds/tests.py
@@ -91,7 +91,7 @@ class FindInit(ContextRecordInit):
self.base_find = []
-class AFindWizardCreationTest(WizardTest, FindInit, TestCase):
+class FindWizardCreationTest(WizardTest, FindInit, TestCase):
# TODO: first to be run because of strange init things...
fixtures = [settings.ROOT_PATH +
'../fixtures/initial_data.json',
@@ -134,12 +134,13 @@ class AFindWizardCreationTest(WizardTest, FindInit, TestCase):
cr = self.create_context_record(
data={'parcel': self.create_parcel()[-1]}, force=True)[-1]
- self.form_datas[0].form_datas['selecrecord-find_creation']['pk'] = cr.pk
+ self.form_datas[0].form_datas['selecrecord-find_creation']['pk'] = \
+ cr.pk
self.form_datas[0].form_datas['dating-find_creation'][0]['period'] = \
Period.objects.all()[0].pk
self.find_number = models.Find.objects.count()
self.basefind_number = models.BaseFind.objects.count()
- super(AFindWizardCreationTest, self).pre_wizard()
+ super(FindWizardCreationTest, self).pre_wizard()
def post_wizard(self):
self.assertEqual(models.BaseFind.objects.count(),
@@ -148,8 +149,7 @@ class AFindWizardCreationTest(WizardTest, FindInit, TestCase):
self.find_number + 1)
-class ATreatmentWizardCreationTest(WizardTest, FindInit, TestCase):
- # TODO: first to be run because of strange init things...
+class TreatmentWizardCreationTest(WizardTest, FindInit, TestCase):
fixtures = [settings.ROOT_PATH +
'../fixtures/initial_data.json',
settings.ROOT_PATH +
@@ -206,7 +206,7 @@ class ATreatmentWizardCreationTest(WizardTest, FindInit, TestCase):
self.form_datas[0].form_datas['selecfind-treatment_creation'][
'resulting_pk'] = self.find.pk
self.treatment_number = models.Treatment.objects.count()
- super(ATreatmentWizardCreationTest, self).pre_wizard()
+ super(TreatmentWizardCreationTest, self).pre_wizard()
def post_wizard(self):
self.assertEqual(models.Treatment.objects.count(),