Skip to content

Commit d23324c

Browse files
committed
Skip point
1 parent 6eadd77 commit d23324c

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

tests/testthat/test-esp_getTiles.R

+20-20
Original file line numberDiff line numberDiff line change
@@ -69,26 +69,6 @@ test_that("tiles online", {
6969
type = "IGNBase.Orto"
7070
))
7171

72-
# Single point
73-
point <- esp_get_ccaa("Madrid")
74-
point <- sf::st_transform(point, 3857)
75-
76-
point <- sf::st_centroid(
77-
sf::st_geometry(point),
78-
of_largest_polygon = TRUE
79-
)
80-
81-
expect_length(point, 1)
82-
expect_s3_class(point, "sfc_POINT")
83-
84-
expect_message(esp_getTiles(point,
85-
verbose = TRUE
86-
))
87-
88-
p <- esp_getTiles(point, verbose = TRUE)
89-
90-
91-
9272
expect_message(esp_getTiles(poly,
9373
type = "RedTransporte.Carreteras",
9474
verbose = TRUE, mask = TRUE
@@ -131,6 +111,26 @@ test_that("tiles online", {
131111

132112
# Run only locally
133113
skip_on_ci()
114+
115+
# Single point
116+
point <- esp_get_ccaa("Madrid")
117+
point <- sf::st_transform(point, 3857)
118+
119+
point <- sf::st_centroid(
120+
sf::st_geometry(point),
121+
of_largest_polygon = TRUE
122+
)
123+
124+
expect_length(point, 1)
125+
expect_s3_class(point, "sfc_POINT")
126+
127+
expect_message(esp_getTiles(point,
128+
verbose = TRUE
129+
))
130+
131+
p <- esp_getTiles(point, verbose = TRUE)
132+
133+
134134

135135
expect_snapshot_file(save_png(opaque), "opaque.png")
136136
expect_snapshot_file(save_png(n), "transp.png")

0 commit comments

Comments
 (0)