Skip to content

Commit

Permalink
docs(geospatial): fix flaky ci geo-literals doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
ncclementi authored and cpcloud committed Jan 31, 2024
1 parent ac72157 commit 417e81d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ibis/expr/types/geospatial.py
Expand Up @@ -798,6 +798,8 @@ def length(self) -> ir.FloatingValue:
--------
>>> import ibis
>>> ibis.options.interactive = True
>>> con = ibis.get_backend()
>>> con.load_extension("spatial")
>>> import shapely
>>> line = shapely.LineString([[0, 0], [1, 0], [1, 1]])
>>> line_lit = ibis.literal(line, type="geometry")
Expand Down Expand Up @@ -1027,6 +1029,8 @@ def start_point(self) -> PointValue:
--------
>>> import ibis
>>> ibis.options.interactive = True
>>> con = ibis.get_backend()
>>> con.load_extension("spatial")
>>> import shapely
>>> line = shapely.LineString([[0, 0], [1, 0], [1, 1]])
>>> line_lit = ibis.literal(line, type="geometry")
Expand All @@ -1049,6 +1053,8 @@ def end_point(self) -> PointValue:
--------
>>> import ibis
>>> ibis.options.interactive = True
>>> con = ibis.get_backend()
>>> con.load_extension("spatial")
>>> import shapely
>>> line = shapely.LineString([[0, 0], [1, 0], [1, 1]])
>>> line_lit = ibis.literal(line, type="geometry")
Expand Down

0 comments on commit 417e81d

Please sign in to comment.