diff options
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 |
commit | c83b3c1e68cb478f9a2c7ba226c56cfdb793fc2c (patch) | |
tree | 9c404d3c3e4d25981e7176fc0c4ef25997c84cdc /archaeological_operations/tests.py | |
parent | f2cb0542faac028dc3f90a61b46c0949bb35339f (diff) | |
download | Ishtar-c83b3c1e68cb478f9a2c7ba226c56cfdb793fc2c.tar.bz2 Ishtar-c83b3c1e68cb478f9a2c7ba226c56cfdb793fc2c.zip |
Serialization: manage operation relations
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 6 |
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" ) |