Skip to content

Commit

Permalink
post-process httptest2 mock files for test_features for #272
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Jun 2, 2022
1 parent 894c5a8 commit 7e0b8f6
Show file tree
Hide file tree
Showing 7 changed files with 225 additions and 9 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: osmdata
Title: Import 'OpenStreetMap' Data as Simple Features or Spatial Objects
Version: 0.1.9.016
Version: 0.1.9.017
Authors@R: c(
person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre")),
person("Bob", "Rudis", role = "aut"),
Expand Down Expand Up @@ -40,6 +40,7 @@ Imports:
utils,
xml2
Suggests:
httptest2,
knitr,
markdown,
raster,
Expand Down
16 changes: 14 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"codeRepository": "https://github.com/ropensci/osmdata/",
"issueTracker": "https://github.com/ropensci/osmdata/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.9.016",
"version": "0.1.9.017",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -100,6 +100,18 @@
}
],
"softwareSuggestions": [
{
"@type": "SoftwareApplication",
"identifier": "httptest2",
"name": "httptest2",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=httptest2"
},
{
"@type": "SoftwareApplication",
"identifier": "knitr",
Expand Down Expand Up @@ -329,7 +341,7 @@
"r-package",
"peer-reviewed"
],
"fileSize": "3000.209KB",
"fileSize": "3002.605KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down
1 change: 1 addition & 0 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
library(testthat)
library(httptest2)
library(osmdata)

test_check("osmdata")
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<td>
<a href="/wiki/Key:amenity" title="Key:amenity"> amenity</a>
</td>
<td>
<a href="/wiki/Tag:amenity%3Dbar" title="Tag:amenity=bar"> bar</a>
</td>
<td>
<a href="/wiki/Node" title="node"><img alt="node" src="/w/images/thumb/7/76/Osm_element_node.svg/20px-Osm_element_node.svg.png" decoding="async" width="20" height="20" style="vertical-align: text-bottom" srcset="/w/images/thumb/7/76/Osm_element_node.svg/30px-Osm_element_node.svg.png 1.5x, /w/images/thumb/7/76/Osm_element_node.svg/40px-Osm_element_node.svg.png 2x"></a> <a href="/wiki/Area" title="area"><img alt="area" src="/w/images/thumb/e/e6/Osm_element_area.svg/20px-Osm_element_area.svg.png" decoding="async" width="20" height="20" style="vertical-align: text-bottom" srcset="/w/images/thumb/e/e6/Osm_element_area.svg/30px-Osm_element_area.svg.png 1.5x, /w/images/thumb/e/e6/Osm_element_area.svg/40px-Osm_element_area.svg.png 2x"></a>
</td>
<td>
<b>Bar</b> is a purpose-built commercial establishment that sells alcoholic drinks to be consumed on the premises. They are characterised by a noisy and vibrant atmosphere, similar to a party and usually don't sell food. See also the description of the tags <tt dir="ltr" class="mw-content-ltr" style="background:#EEF;font-size:1em;line-height:1.6"><bdi style="white-space:nowrap"><a href="/wiki/Key:amenity" title="Key:amenity">amenity</a></bdi>=<a href="/wiki/Tag:amenity%3Dpub" title="Tag:amenity=pub"><bdi>pub</bdi></a>;<a href="/wiki/Tag:amenity%3Dbar" title="Tag:amenity=bar"><bdi>bar</bdi></a>;<a href="/wiki/Tag:amenity%3Drestaurant" title="Tag:amenity=restaurant"><bdi>restaurant</bdi></a></tt> for a distinction between these.
</td>
<td>
<div class="center"><div class="floatnone"><a href="/wiki/File:Bar-16.svg" class="image"><img alt="Bar-16.svg" src="/w/images/thumb/9/94/Bar-16.svg/28px-Bar-16.svg.png" decoding="async" width="28" height="28" srcset="/w/images/thumb/9/94/Bar-16.svg/42px-Bar-16.svg.png 1.5x, /w/images/thumb/9/94/Bar-16.svg/56px-Bar-16.svg.png 2x"></a></div></div>
</td>
<td>
<div class="center"><div class="floatnone"><a href="/wiki/File:Bar_MXCT.JPG" class="image"><img alt="Bar MXCT.JPG" src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Bar_MXCT.JPG/100px-Bar_MXCT.JPG" decoding="async" width="100" height="75" srcset="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Bar_MXCT.JPG/150px-Bar_MXCT.JPG 1.5x, https://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Bar_MXCT.JPG/200px-Bar_MXCT.JPG 2x"></a></div></div>
</td>
<td>
<a href="/wiki/Key:amenity" title="Key:amenity"> amenity</a>
</td>
<td>
<a href="/wiki/Tag:amenity%3Dbiergarten" title="Tag:amenity=biergarten"> biergarten</a>
</td>
<td>
<a href="/wiki/Node" title="node"><img alt="node" src="/w/images/thumb/7/76/Osm_element_node.svg/20px-Osm_element_node.svg.png" decoding="async" width="20" height="20" style="vertical-align: text-bottom" srcset="/w/images/thumb/7/76/Osm_element_node.svg/30px-Osm_element_node.svg.png 1.5x, /w/images/thumb/7/76/Osm_element_node.svg/40px-Osm_element_node.svg.png 2x"></a> <a href="/wiki/Area" title="area"><img alt="area" src="/w/images/thumb/e/e6/Osm_element_area.svg/20px-Osm_element_area.svg.png" decoding="async" width="20" height="20" style="vertical-align: text-bottom" srcset="/w/images/thumb/e/e6/Osm_element_area.svg/30px-Osm_element_area.svg.png 1.5x, /w/images/thumb/e/e6/Osm_element_area.svg/40px-Osm_element_area.svg.png 2x"></a>
</td>
<td>
<b>Biergarten</b> or <b>beer garden</b> is an open-air area where alcoholic beverages along with food is prepared and served. See also the description of the tags <tt dir="ltr" class="mw-content-ltr" style="background:#EEF;font-size:1em;line-height:1.6"><bdi style="white-space:nowrap"><a href="/wiki/Key:amenity" title="Key:amenity">amenity</a></bdi>=<a href="/wiki/Tag:amenity%3Dpub" title="Tag:amenity=pub"><bdi>pub</bdi></a>;<a href="/wiki/Tag:amenity%3Dbar" title="Tag:amenity=bar"><bdi>bar</bdi></a>;<a href="/wiki/Tag:amenity%3Drestaurant" title="Tag:amenity=restaurant"><bdi>restaurant</bdi></a></tt>. A biergarten can commonly be found attached to a beer hall, pub, bar, or restaurant. In this case, you can use <tt dir="ltr" class="mw-content-ltr" style="background:#EEF;font-size:1em;line-height:1.6"><bdi style="white-space:nowrap"><a href="/wiki/Key:biergarten" class="mw-redirect" title="Key:biergarten">biergarten</a></bdi>=<bdi>yes</bdi></tt> additional to <tt dir="ltr" class="mw-content-ltr" style="background:#EEF;font-size:1em;line-height:1.6"><bdi style="white-space:nowrap"><a href="/wiki/Key:amenity" title="Key:amenity">amenity</a></bdi>=<a href="/wiki/Tag:amenity%3Dpub" title="Tag:amenity=pub"><bdi>pub</bdi></a>;<a href="/wiki/Tag:amenity%3Dbar" title="Tag:amenity=bar"><bdi>bar</bdi></a>;<a href="/wiki/Tag:amenity%3Drestaurant" title="Tag:amenity=restaurant"><bdi>restaurant</bdi></a></tt>.
</td>
<td>
<div class="center"><div class="floatnone"><a href="/wiki/File:Biergarten-16.svg" class="image"><img alt="Biergarten-16.svg" src="/w/images/thumb/e/e1/Biergarten-16.svg/28px-Biergarten-16.svg.png" decoding="async" width="28" height="28" srcset="/w/images/thumb/e/e1/Biergarten-16.svg/42px-Biergarten-16.svg.png 1.5x, /w/images/thumb/e/e1/Biergarten-16.svg/56px-Biergarten-16.svg.png 2x"></a></div></div>
</td>
<td>
<div class="center"><div class="floatnone"><a href="/wiki/File:Hofbr%C3%A4ukeller_Arkaden.JPG" class="image"><img alt="Hofbräukeller Arkaden.JPG" src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/01/Hofbr%C3%A4ukeller_Arkaden.JPG/100px-Hofbr%C3%A4ukeller_Arkaden.JPG" decoding="async" width="100" height="75" srcset="https://upload.wikimedia.org/wikipedia/commons/thumb/0/01/Hofbr%C3%A4ukeller_Arkaden.JPG/150px-Hofbr%C3%A4ukeller_Arkaden.JPG 1.5x, https://upload.wikimedia.org/wikipedia/commons/thumb/0/01/Hofbr%C3%A4ukeller_Arkaden.JPG/200px-Hofbr%C3%A4ukeller_Arkaden.JPG 2x"></a></div></div>
</td>
<td>
<a href="/wiki/Key:amenity" title="Key:amenity"> amenity</a>
</td>
<td>
<a href="/wiki/Tag:amenity%3Dcafe" title="Tag:amenity=cafe"> cafe</a>
</td>
<td>
<a href="/wiki/Node" title="node"><img alt="node" src="/w/images/thumb/7/76/Osm_element_node.svg/20px-Osm_element_node.svg.png" decoding="async" width="20" height="20" style="vertical-align: text-bottom" srcset="/w/images/thumb/7/76/Osm_element_node.svg/30px-Osm_element_node.svg.png 1.5x, /w/images/thumb/7/76/Osm_element_node.svg/40px-Osm_element_node.svg.png 2x"></a> <a href="/wiki/Area" title="area"><img alt="area" src="/w/images/thumb/e/e6/Osm_element_area.svg/20px-Osm_element_area.svg.png" decoding="async" width="20" height="20" style="vertical-align: text-bottom" srcset="/w/images/thumb/e/e6/Osm_element_area.svg/30px-Osm_element_area.svg.png 1.5x, /w/images/thumb/e/e6/Osm_element_area.svg/40px-Osm_element_area.svg.png 2x"></a>
</td>
<td>
<b>Cafe</b> is generally an informal place that offers casual meals and beverages; typically, the focus is on coffee or tea. Also known as a <b>coffeehouse/shop</b>, <b>bistro</b> or <b>sidewalk cafe</b>. The kind of food served may be mapped with the tags <tt dir="ltr" class="mw-content-ltr" style="background:#EEF;font-size:1em;line-height:1.6"><bdi style="white-space:nowrap"><a href="/wiki/Key:cuisine" title="Key:cuisine">cuisine</a></bdi>=*</tt> and <tt dir="ltr" class="mw-content-ltr" style="background:#EEF;font-size:1em;line-height:1.6"><bdi style="white-space:nowrap"><a href="/wiki/Key:diet" title="Key:diet">diet</a></bdi>=*</tt>. See also the tags <tt dir="ltr" class="mw-content-ltr" style="background:#EEF;font-size:1em;line-height:1.6"><bdi style="white-space:nowrap"><a href="/wiki/Key:amenity" title="Key:amenity">amenity</a></bdi>=<a href="/wiki/Tag:amenity%3Drestaurant" title="Tag:amenity=restaurant"><bdi>restaurant</bdi></a>;<a href="/wiki/Tag:amenity%3Dbar" title="Tag:amenity=bar"><bdi>bar</bdi></a>;<a href="/wiki/Tag:amenity%3Dfast_food" title="Tag:amenity=fast food"><bdi>fast_food</bdi></a></tt>.
</td>
<td>
<div class="center"><div class="floatnone"><a href="/wiki/File:Cafe-16.svg" class="image"><img alt="Cafe-16.svg" src="/w/images/thumb/d/da/Cafe-16.svg/28px-Cafe-16.svg.png" decoding="async" width="28" height="28" srcset="/w/images/thumb/d/da/Cafe-16.svg/42px-Cafe-16.svg.png 1.5x, /w/images/thumb/d/da/Cafe-16.svg/56px-Cafe-16.svg.png 2x"></a></div></div>
</td>
<td>
<div class="center"><div class="floatnone"><a href="/wiki/File:Klagenfurt_W%C3%B6rthersee_Strandbad_Cafe_Sunset_Bar_11102008_65.jpg" class="image"><img alt="Klagenfurt Wörthersee Strandbad Cafe Sunset Bar 11102008 65.jpg" src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Klagenfurt_W%C3%B6rthersee_Strandbad_Cafe_Sunset_Bar_11102008_65.jpg/100px-Klagenfurt_W%C3%B6rthersee_Strandbad_Cafe_Sunset_Bar_11102008_65.jpg" decoding="async" width="100" height="66" srcset="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Klagenfurt_W%C3%B6rthersee_Strandbad_Cafe_Sunset_Bar_11102008_65.jpg/150px-Klagenfurt_W%C3%B6rthersee_Strandbad_Cafe_Sunset_Bar_11102008_65.jpg 1.5x, https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Klagenfurt_W%C3%B6rthersee_Strandbad_Cafe_Sunset_Bar_11102008_65.jpg/200px-Klagenfurt_W%C3%B6rthersee_Strandbad_Cafe_Sunset_Bar_11102008_65.jpg 2x"></a></div></div>
</td>
<td>
<a href="/wiki/Key:amenity" title="Key:amenity"> amenity</a>
</td>
<td>
<a href="/wiki/Tag:amenity%3Dfast_food" title="Tag:amenity=fast food"> fast_food</a>
</td>
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<a href="/wiki/Tag:highway%3Dfootway" title="Tag:highway=footway"><bdi>footway</bdi></a>
<a href="/wiki/Tag:highway%3Dservice" title="Tag:highway=service"><bdi>service</bdi></a>
<a href="/wiki/Tag:highway%3Dservice" title="Tag:highway=service"><bdi>service</bdi></a>
<a href="/wiki/Tag:highway%3Dmotorway" title="Tag:highway=motorway"> motorway</a>
<a href="/wiki/Tag:highway%3Dtrunk" title="Tag:highway=trunk"> trunk</a>
<a href="/wiki/Tag:highway%3Dprimary" title="Tag:highway=primary"> primary</a>
<a href="/wiki/Tag:highway%3Dsecondary" title="Tag:highway=secondary"> secondary</a>
<a href="/wiki/Tag:highway%3Dtertiary" title="Tag:highway=tertiary"> tertiary</a>
<a href="/wiki/Tag:highway%3Dunclassified" title="Tag:highway=unclassified"> unclassified</a>
<a href="/wiki/Tag:highway%3Droad" title="Tag:highway=road"><bdi>road</bdi></a>
<a href="/wiki/Tag:highway%3Dresidential" title="Tag:highway=residential"> residential</a>
<a href="/wiki/Tag:highway%3Dmotorway_link" title="Tag:highway=motorway link"> motorway_link</a>
<a href="/wiki/Tag:highway%3Dtrunk_link" title="Tag:highway=trunk link"> trunk_link</a>
<a href="/wiki/Tag:highway%3Dprimary_link" title="Tag:highway=primary link"> primary_link</a>
<a href="/wiki/Tag:highway%3Dsecondary_link" title="Tag:highway=secondary link"> secondary_link</a>
<a href="/wiki/Tag:highway%3Dtertiary_link" title="Tag:highway=tertiary link"> tertiary_link</a>
<a href="/wiki/Tag:highway%3Dliving_street" title="Tag:highway=living street"> living_street</a>
<a href="/wiki/Tag:highway%3Dservice" title="Tag:highway=service"> service</a>
<a href="/wiki/Tag:highway%3Dpedestrian" title="Tag:highway=pedestrian"> pedestrian</a>
<a href="/wiki/Tag:highway%3Dtrack" title="Tag:highway=track"> track</a>
<a href="/wiki/Tag:highway%3Dbus_guideway" title="Tag:highway=bus guideway"> bus_guideway</a>
<a href="/wiki/Tag:highway%3Descape" title="Tag:highway=escape"> escape</a>
<a href="/wiki/Tag:highway%3Draceway" title="Tag:highway=raceway"> raceway</a>
<a href="/wiki/Tag:highway%3Droad" title="Tag:highway=road"> road</a>
<a href="/wiki/Tag:highway%3Dbusway" title="Tag:highway=busway"> busway</a>
<a href="/wiki/Tag:highway%3Dfootway" title="Tag:highway=footway"> footway</a>
<a href="/wiki/Tag:highway%3Dpedestrian" title="Tag:highway=pedestrian"><bdi>pedestrian</bdi></a>
<a href="/wiki/Tag:highway%3Dtrack" title="Tag:highway=track"><bdi>track</bdi></a>
<a href="/wiki/Tag:highway%3Dbridleway" title="Tag:highway=bridleway"> bridleway</a>
<a href="/wiki/Tag:highway%3Dsteps" title="Tag:highway=steps"> steps</a>
<a href="/wiki/Tag:highway%3Dcorridor" title="Tag:highway=corridor"> corridor</a>
<a href="/wiki/Tag:highway%3Dpath" title="Tag:highway=path">path</a>
<a href="/wiki/Tag:highway%3Dfootway" title="Tag:highway=footway"><bdi>footway</bdi></a>
<a href="/wiki/Tag:highway%3Dcycleway" title="Tag:highway=cycleway"><bdi>cycleway</bdi></a>
<a href="/wiki/Tag:highway%3Dbridleway" title="Tag:highway=bridleway"><bdi>bridleway</bdi></a>
<a href="/wiki/Tag:highway%3Dtrack" title="Tag:highway=track"><bdi>track</bdi></a>
<a href="/wiki/Tag:highway%3Dfootway" title="Tag:highway=footway"><bdi>footway</bdi></a>
<a href="/wiki/Tag:highway%3Dpath" title="Tag:highway=path"><bdi>path</bdi></a>
<a href="/wiki/Tag:highway%3Dfootway" title="Tag:highway=footway"><bdi>footway</bdi></a>
<a href="/wiki/Tag:highway%3Dpath" title="Tag:highway=path"><bdi>path</bdi></a>
<a href="/wiki/Tag:highway%3Dcycleway" title="Tag:highway=cycleway"> cycleway</a>
<a href="/wiki/Tag:highway%3Dcycleway" title="Tag:highway=cycleway"><bdi>cycleway</bdi></a>
<a href="/wiki/Tag:highway%3Dproposed" title="Tag:highway=proposed"> proposed</a>
<a href="/wiki/Tag:highway%3Dconstruction" title="Tag:highway=construction"> construction</a>
<a href="/wiki/Tag:highway%3Dpath" title="Tag:highway=path"><bdi>path</bdi></a>
<a href="/wiki/Tag:highway%3Dtrack" title="Tag:highway=track"><bdi>track</bdi></a>
<a href="/wiki/Tag:highway%3Dpath" title="Tag:highway=path"><bdi>path</bdi></a>
<a href="/wiki/Tag:highway%3Dtrack" title="Tag:highway=track"><bdi>track</bdi></a>
<a href="/wiki/Tag:highway%3Dpassing_place" title="Tag:highway=passing place"><bdi>passing_place</bdi></a>
<a href="/wiki/Tag:highway%3Dpath" title="Tag:highway=path"><bdi>path</bdi></a>
<a href="/wiki/Tag:highway%3Dfootway" title="Tag:highway=footway"><bdi>footway</bdi></a>
<a href="/wiki/Tag:highway%3Dpath" title="Tag:highway=path"><bdi>path</bdi></a>
<a href="/wiki/Tag:highway%3Dfootway" title="Tag:highway=footway"><bdi>footway</bdi></a>
<a href="/wiki/Tag:highway%3Dcycleway" title="Tag:highway=cycleway"><bdi>cycleway</bdi></a>
<a href="/wiki/Tag:highway%3Dbridleway" title="Tag:highway=bridleway"><bdi>bridleway</bdi></a>
<a href="/wiki/Tag:highway%3Dbus_stop" title="Tag:highway=bus stop"> bus_stop</a>
<a href="/wiki/Tag:highway%3Dcrossing" title="Tag:highway=crossing"> crossing</a>
<a href="/wiki/Tag:highway%3Delevator" title="Tag:highway=elevator"> elevator</a>
<a href="/wiki/Tag:highway%3Demergency_bay" title="Tag:highway=emergency bay"> emergency_bay</a>
<a href="/wiki/Tag:highway%3Demergency_access_point" title="Tag:highway=emergency access point"> emergency_access_point</a>
<a href="/wiki/Tag:highway%3Dgive_way" title="Tag:highway=give way"> give_way</a>
<a href="/wiki/Tag:highway%3Dmilestone" title="Tag:highway=milestone"> milestone</a>
<a href="/wiki/Tag:highway%3Dmini_roundabout" title="Tag:highway=mini roundabout"> mini_roundabout</a>
<a href="/wiki/Tag:highway%3Dmotorway_junction" title="Tag:highway=motorway junction"> motorway_junction</a>
<a href="/wiki/Tag:highway%3Dpassing_place" title="Tag:highway=passing place">passing_place</a>
<a href="/wiki/Tag:highway%3Dplatform" title="Tag:highway=platform"> platform</a>
<a href="/wiki/Tag:highway%3Drest_area" title="Tag:highway=rest area"> rest_area</a>
<a href="/wiki/Tag:highway%3Dservices" title="Tag:highway=services"> services</a>
<a href="/wiki/Tag:highway%3Dspeed_camera" title="Tag:highway=speed camera"> speed_camera</a>
<a href="/wiki/Tag:highway%3Dstop" title="Tag:highway=stop"> stop</a>
<a href="/wiki/Tag:highway%3Dstreet_lamp" title="Tag:highway=street lamp">street_lamp</a>
<a href="/wiki/Tag:highway%3Dtoll_gantry" title="Tag:highway=toll gantry"> toll_gantry</a>
<a href="/wiki/Tag:highway%3Dtraffic_mirror" title="Tag:highway=traffic mirror">traffic_mirror</a>
<a href="/wiki/Tag:highway%3Dtraffic_signals" title="Tag:highway=traffic signals"> traffic_signals</a>
<a href="/wiki/Tag:highway%3Dtrailhead" title="Tag:highway=trailhead"> trailhead</a>
<a href="/wiki/Tag:highway%3Dturning_circle" title="Tag:highway=turning circle"> turning_circle</a>
<a href="/wiki/Tag:highway%3Dturning_loop" title="Tag:highway=turning loop"> turning_loop</a>
<a href="/wiki/Tag:highway%3Dcrossing" title="Tag:highway=crossing"><bdi>crossing</bdi></a>
<a href="/wiki/Tag:highway%3Dmotorway" title="Tag:highway=motorway"><bdi>motorway</bdi></a>
Loading

0 comments on commit 7e0b8f6

Please sign in to comment.