diff --git a/tests/test_osmnx.py b/tests/test_osmnx.py index 6458e9c4..14eaa8c8 100644 --- a/tests/test_osmnx.py +++ b/tests/test_osmnx.py @@ -230,10 +230,6 @@ def test_osm_xml() -> None: assert edge_key in G.edges assert G.edges[edge_key]["name"] in {"8th Street", "Willow Street"} - # delete temporary files - Path.unlink(Path(path_osm)) - Path.unlink(Path(path_gz)) - # test OSM xml saving G = ox.graph_from_point(location_point, dist=500, network_type="drive", simplify=False) fp = Path(ox.settings.data_folder) / "graph.osm" @@ -269,6 +265,10 @@ def test_osm_xml() -> None: ox.settings.overpass_settings = default_overpass_settings ox.settings.all_oneway = default_all_oneway + # delete temporary files + Path.unlink(Path(path_osm)) + Path.unlink(Path(path_gz)) + def test_elevation() -> None: """Test working with elevation data."""