Skip to content

Commit 56f5972

Browse files
authored
Update test_plots.py
Remove gtk plot test
1 parent b527614 commit 56f5972

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

tests/test_plots.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,12 @@
88

99
from pyinfraformat import from_gtk_wfs, from_infraformat, plot_map
1010

11-
from .helpers import ping_gtk
12-
13-
1411
def get_object():
1512
here = os.path.dirname(os.path.abspath(__file__))
1613
filepath = os.path.join(here, "test_data", "infraformat_hole_types.tek")
1714
object = from_infraformat(filepath)
1815
return object
1916

20-
2117
def test_holes_plot():
2218
holes = get_object()
2319
for hole in holes:
@@ -27,18 +23,7 @@ def test_holes_plot():
2723
except NotImplementedError:
2824
pass
2925

30-
3126
def test_map():
3227
holes = get_object()
3328
holes_map = plot_map(holes)
3429
assert isinstance(holes_map, folium.Map)
35-
36-
37-
@pytest.mark.skipif(not ping_gtk(), reason="GTK DB not available")
38-
def test_gtk_map():
39-
holes = get_object()
40-
holes_map = plot_map(holes)
41-
bbox = (60.12065, 24.4421945, 60.1208, 24.443) # Bbox with empty and missing data holes
42-
holes = from_gtk_wfs(bbox, "WGS84")
43-
holes_map = plot_map(holes)
44-
assert isinstance(holes_map, folium.Map)

0 commit comments

Comments
 (0)