summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-02-02 16:36:58 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-02-02 16:36:58 +0100
commit18facb132a0a139a71671bd9d9840615421920d1 (patch)
tree70c4f45e2b70a8dcb3c9b59464731b1a0236d7f3 /archaeological_context_records
parent35f78f2960e0121e8508c3703bea8b8c22ad651e (diff)
downloadIshtar-18facb132a0a139a71671bd9d9840615421920d1.tar.bz2
Ishtar-18facb132a0a139a71671bd9d9840615421920d1.zip
No more test with spatialite :( Too much cool PostgreSQL features used.
Diffstat (limited to 'archaeological_context_records')
-rw-r--r--archaeological_context_records/models.py2
-rw-r--r--archaeological_context_records/tests.py4
2 files changed, 0 insertions, 6 deletions
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