summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-09-16 15:14:31 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-09-16 17:01:20 +0200
commita6d3eddc857c0bf69cdc5592f7f158ce2e67553f (patch)
treea2117f453cdd50dbde48494cafc115f80e36fdbf /archaeological_context_records
parent9b4b8726d7b7b16f49ab3e17f57595b84cd5bc8c (diff)
downloadIshtar-a6d3eddc857c0bf69cdc5592f7f158ce2e67553f.tar.bz2
Ishtar-a6d3eddc857c0bf69cdc5592f7f158ce2e67553f.zip
✅ fix test for context record wizard: remove relation test
Diffstat (limited to 'archaeological_context_records')
-rw-r--r--archaeological_context_records/tests.py13
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)