diff options
Diffstat (limited to 'archaeological_finds/tests.py')
| -rw-r--r-- | archaeological_finds/tests.py | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index 27336a05d..51bb516ea 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -94,7 +94,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', @@ -137,12 +137,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(), @@ -153,8 +154,7 @@ class AFindWizardCreationTest(WizardTest, FindInit, TestCase):          self.assertEqual(find.datings.count(), 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 + @@ -211,7 +211,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(), | 
