Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mortewle committed Oct 22, 2023
1 parent 8896702 commit dba6134
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_centerline.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import sgis as sg


def not_test_get_centerline():
def test_get_centerline():
from oslo import points_oslo, roads_oslo

circle = sg.to_gdf([0, 0]).buffer(1)
Expand Down Expand Up @@ -55,7 +55,9 @@ def not_test_get_centerline():
sg.qtm(centerline, cross)

assert (geom_type := sg.get_geom_type(centerline)) == "line", geom_type
assert centerline.unary_union.intersects(Point(0, 0).buffer(0.1))
assert centerline.unary_union.intersects(
Point(0, 0).buffer(0.1)
), centerline.unary_union

roads = roads_oslo()
p = points_oslo()
Expand All @@ -74,5 +76,5 @@ def not_test_get_centerline():
if __name__ == "__main__":
import cProfile

not_test_get_centerline()
# cProfile.run("not_test_get_centerline()", sort="cumtime")
test_get_centerline()
# cProfile.run("test_get_centerline()", sort="cumtime")

0 comments on commit dba6134

Please sign in to comment.