diff options
-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() |