Fix, add 2.9 hook variant in test plugin

This commit is contained in:
amercader 2022-09-07 10:24:35 +02:00
parent 3fce3934bf
commit 44e3ce1a42
2 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,9 @@ class TestSpatialPlugin(p.SingletonPlugin):
def update_config(self, config):
p.toolkit.add_template_directory(config, "templates")
def before_index(self, pkg_dict):
return self.before_dataset_index(pkg_dict)
def before_dataset_index(self, pkg_dict):
if not pkg_dict.get("my_geoms"):

View File

@ -605,7 +605,7 @@ class TestCustomIndexing(SpatialTestBase):
"""
These tests ensure both that
1. You can use your own custom logic to index geometries
2. The spatial fields are multivaule, ie you can index more than one geometry against
2. The spatial fields are multivalued, ie you can index more than one geometry against
the same dataset
"""
def test_single_geom(self):