From 79c236e7eef57bd4ebfda743db1354c99806ffa0 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 2 Feb 2018 16:36:58 +0100 Subject: No more test with spatialite :( Too much cool PostgreSQL features used. --- archaeological_context_records/models.py | 2 -- archaeological_context_records/tests.py | 4 ---- 2 files changed, 6 deletions(-) (limited to 'archaeological_context_records') diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 5e9d63652..e8cc60d43 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -467,8 +467,6 @@ class ContextRecord(BulkUpdatedItem, BaseHistorizedItem, + list(BaseFind.objects.filter(context_record=self).all()) def _cached_labels_bulk_update(self): - if settings.TESTING and settings.USE_SPATIALITE_FOR_TESTS: - return self.base_finds.model.cached_label_bulk_update( context_record_id=self.pk) return True diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py index d93662a27..6ac1e6873 100644 --- a/archaeological_context_records/tests.py +++ b/archaeological_context_records/tests.py @@ -321,10 +321,6 @@ class ContextRecordTest(ContextRecordInit, TestCase): self.assertEqual(ope_id, 'OP2017-1') def test_downstream_cache_update(self): - if settings.USE_SPATIALITE_FOR_TESTS: - # using views - can only be tested with postgresql - return - cr = self.create_context_record()[0] from archaeological_finds.models import Find, BaseFind, MaterialType -- cgit v1.2.3