Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Oct 28, 2024
1 parent 6a386b9 commit 08899b3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_multiple_geom_gpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_multiple_geom_geopackage(self):
importer.configuration.create_basket_col = True

# create it when there's a sufficient gdal version
importer.configuration.create_gpkg_multigeom = sufficient_gdal
importer.configuration.create_gpkg_multigeom = True

importer.stdout.connect(self.print_info)
importer.stderr.connect(self.print_error)
Expand All @@ -78,13 +78,11 @@ def test_multiple_geom_geopackage(self):
db_connector = db_utils.get_db_connector(importer.configuration)
tables_with_multiple_geometries = db_connector.multiple_geometry_tables()

bool(len(tables_with_multiple_geometries) > 0)

# should have multiple when having a sufficient gdal and otherwise not
if sufficient_gdal:
assert len(tables_with_multiple_geometries) == 2
else:
assert len(tables_with_multiple_geometries) == 1
else:
assert len(tables_with_multiple_geometries) == 0

# create project
config_manager = GpkgCommandConfigManager(importer.configuration)
Expand Down

0 comments on commit 08899b3

Please sign in to comment.