summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py
index 5b7f71e1b..5eeeb1808 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -678,7 +678,9 @@ class OperationAdminActWizardCreationTest(WizardTest, OperationInitTest,
def pre_wizard(self):
ope = self.get_default_operation()
- self.operation_number = models.Operation.objects.count()
+
+ self.number = models.AdministrativeAct.objects.count()
+
data = self.form_datas[0][0]
data['selec-operation_administrativeactop']['pk'] = ope.pk
act = models.ActType.objects.filter(intented_to='O').all()[0].pk
@@ -688,5 +690,5 @@ class OperationAdminActWizardCreationTest(WizardTest, OperationInitTest,
super(OperationAdminActWizardCreationTest, self).pre_wizard()
def post_wizard(self):
- self.assertEqual(models.Operation.objects.count(),
- self.operation_number + 1)
+ self.assertEqual(models.AdministrativeAct.objects.count(),
+ self.number + 1)