diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-04 12:13:04 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-04-04 12:13:04 +0200 | 
| commit | 58fa2ccf25fa83e6870c64ae8ccb1c4cc19853d2 (patch) | |
| tree | 6186b05eadafc75d6e2e184ea7cfcaa066e7bd1b /archaeological_context_records/tests.py | |
| parent | 93f1b10ad4c4f398aed75bf62ed3643554876678 (diff) | |
| download | Ishtar-58fa2ccf25fa83e6870c64ae8ccb1c4cc19853d2.tar.bz2 Ishtar-58fa2ccf25fa83e6870c64ae8ccb1c4cc19853d2.zip | |
Base finds: bulk update of finds on context record change (refs #3484)
Diffstat (limited to 'archaeological_context_records/tests.py')
| -rw-r--r-- | archaeological_context_records/tests.py | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/archaeological_context_records/tests.py b/archaeological_context_records/tests.py index 14a5ae8d3..4226b42ea 100644 --- a/archaeological_context_records/tests.py +++ b/archaeological_context_records/tests.py @@ -289,6 +289,10 @@ 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 @@ -315,7 +319,7 @@ class ContextRecordTest(ContextRecordInit, TestCase):              def reached(self, sender, **kwargs):                  instance = kwargs.get('instance') -                if sender == Find: +                if sender in (Find, BaseFind):                      self.find_reached.append(instance)          test_obj = TestObj() | 
