Skip to content

Commit

Permalink
check shapely
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Sep 3, 2024
1 parent 302c0f9 commit 48afd96
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@


def test_viz_geometry():
# For WKB parsing
pytest.importorskip("shapely")

con = duckdb.connect()
sql = f"""
INSTALL spatial;
Expand All @@ -31,6 +34,9 @@ def test_viz_geometry():


def test_viz_wkb_blob():
# For WKB parsing
pytest.importorskip("shapely")

con = duckdb.connect()
sql = f"""
INSTALL spatial;
Expand Down Expand Up @@ -79,6 +85,9 @@ def test_viz_bbox_2d():


def test_layer_geometry():
# For WKB parsing
pytest.importorskip("shapely")

con = duckdb.connect()
sql = f"""
INSTALL spatial;
Expand All @@ -92,6 +101,9 @@ def test_layer_geometry():


def test_layer_wkb_blob():
# For WKB parsing
pytest.importorskip("shapely")

con = duckdb.connect()
sql = f"""
INSTALL spatial;
Expand Down Expand Up @@ -174,6 +186,9 @@ def test_create_table_as():


def test_create_table_as_custom_con():
# For WKB parsing
pytest.importorskip("shapely")

sql = f"""
INSTALL spatial;
LOAD spatial;
Expand Down

0 comments on commit 48afd96

Please sign in to comment.