summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-04 14:12:34 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-09-04 14:12:34 +0200
commit1d4c76d6977b01b23d7816cc6fb4c1be8cf916a2 (patch)
tree9c404d3c3e4d25981e7176fc0c4ef25997c84cdc /archaeological_operations/tests.py
parent9bc206dccda41a821dcc23787fa03355a7ac0924 (diff)
downloadIshtar-1d4c76d6977b01b23d7816cc6fb4c1be8cf916a2.tar.bz2
Ishtar-1d4c76d6977b01b23d7816cc6fb4c1be8cf916a2.zip
Serialization: manage operation relations
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py
index 2c06f5a35..17d112559 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -750,7 +750,11 @@ class SerializationTest(GenericSerializationTest, TestCase):
self.username, self.password, self.user = create_superuser()
operation = create_operation(self.user,
values={"code_patriarche": "66666"})
- create_operation(self.user, values={"code_patriarche": "66667"})
+ ope2 = create_operation(self.user, values={"code_patriarche": "66667"})
+ models.RecordRelations.objects.create(
+ left_record=operation, right_record=ope2,
+ relation_type=models.RelationType.objects.all()[0]
+ )
site = models.ArchaeologicalSite.objects.create(
reference="ref-site"
)