Skip to content

Commit

Permalink
Skip failing test with multipart request on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaspons committed May 23, 2024
1 parent c2f3956 commit 27e5c7e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ cre
crea
cumsum
cxMGJjSNnEGiKHAdp
da
dbTools
ddcf
de
Expand Down Expand Up @@ -249,6 +250,7 @@ orcid
ord
ordL
ori
os
osc
OSC
osm
Expand Down
11 changes: 11 additions & 0 deletions tests/testthat/test-gps_traces.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ test_that("osm_get_points_gps works", {


test_that("edit gpx works", {
skip_on_os("windows") # TODO: issue in httptest2? different mock file name in windows
# https://github.com/nealrichardson/httptest2/issues/42
# Error in `stop_request(req)`: An unexpected request was made:
# POST https://master.apis.dev.openstreetmap.org/api/0.6/gpx/create Multipart form:
# file = File: f42901c4e0e077e532e417da5224df67
# description = Test create gpx with osmapiR.
# tags = testing, osmapiR
# visibility = private
#
# Expected mock file: osm.org/api/0.6/gpx/create-b3940a-POST.*

gpx_path <- test_path("sample_files", "sample.gpx")

with_mock_dir("mock_edit_gpx", {
Expand Down

0 comments on commit 27e5c7e

Please sign in to comment.