diff options
author | Cefin <kevon@tuta.io> | 2022-03-14 10:53:20 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:49 +0200 |
commit | 48df631bd41e3b1d1c41025596e7b277b96cfef6 (patch) | |
tree | 1e07f8760699f4dceb28a2d4bcdd1c202a8ce233 | |
parent | 40026726b089465b45912edf32ff3fe9364a65a6 (diff) | |
download | Ishtar-48df631bd41e3b1d1c41025596e7b277b96cfef6.tar.bz2 Ishtar-48df631bd41e3b1d1c41025596e7b277b96cfef6.zip |
Context Record, Bulk update : draft three of tests #5293
-rw-r--r-- | archaeological_context_records/tests.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py index cabd6dcce..bef8a916a 100644 --- a/archaeological_context_records/tests.py +++ b/archaeological_context_records/tests.py @@ -573,12 +573,18 @@ class ContextRecordQATest(ContextRecordInit, TestCase): fixtures = CONTEXT_RECORD_TOWNS_FIXTURES def setUp(self): + IshtarSiteProfile.objects.create() self.username, self.password, self.user = create_superuser() - self.create_context_record(data={"label": "CR 1"}) self.create_context_record(data={"label": "CR 2"}) - self.rel_types = models.RelationType.objects.all() - self.units = models.Unit.objects.all() + + cr_1 = self.context_records[0] + cr_2 = self.context_records[1] + sym_rel_type = models.RelationType.objects.filter(symmetrical=True).all()[0] + self.cr_rel_type = sym_rel_type + models.RecordRelations.objects.create( + left_record=cr_1, right_record=cr_2, relation_type=sym_rel_type + ) def test_bulk_update(self): c = Client() |