diff options
-rw-r--r-- | archaeological_context_records/tests.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py index 2804bbc45..0d756be1c 100644 --- a/archaeological_context_records/tests.py +++ b/archaeological_context_records/tests.py @@ -1372,18 +1372,6 @@ class ContextRecordWizardCreationTest(WizardTest, ContextRecordInit, TestCase): form_data.set("selec", "operation_id", ope.pk) form_data.set("general", "parcel", parcel.pk) - self.related_cr = self.create_context_record(data={"operation": ope})[0] - - self.form_datas[1].append( - "relations", - { - "right_record": self.related_cr.pk, - "relation_type": models.RelationType.objects.create( - label="Test", symmetrical=False - ).pk, - }, - ) - period = models.Period.objects.all()[0].pk self.form_datas[1].append("datings", {"period": period}) self.form_datas[1].append("datings", {"period": period}) @@ -1393,7 +1381,6 @@ class ContextRecordWizardCreationTest(WizardTest, ContextRecordInit, TestCase): def post_wizard(self): self.assertEqual(models.ContextRecord.objects.count(), self.cr_nb + 2) - self.assertEqual(self.related_cr.left_relations.count(), 1) # identical datings, only one should be finaly save cr = models.ContextRecord.objects.order_by("-pk")[0] self.assertEqual(cr.datings.count(), 1) |