diff options
Diffstat (limited to 'archaeological_context_records/tests.py')
-rw-r--r-- | archaeological_context_records/tests.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py index 0d838f3ea..2804bbc45 100644 --- a/archaeological_context_records/tests.py +++ b/archaeological_context_records/tests.py @@ -1101,6 +1101,17 @@ class RecordRelationsTest(ContextRecordInit, TestCase): 1, ) + def test_simple_relation_tree(self): + profile = get_current_profile() + profile.parent_relations_engine = "T" + profile.save() + get_current_profile(force=True) + self.assertTrue(models.ContextRecordTree.check_engine()) # change to table + q = models.ContextRecordTree.objects + nb = q.count() + self.create_context_record({"label": "CR test"}) + self.assertEqual(q.count(), nb + 1) + def test_relation_view(self): profile = get_current_profile() profile.parent_relations_engine = "V" |