-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
post-process httptest2 mock files for test_features for #272
- Loading branch information
Showing
7 changed files
with
225 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
library(testthat) | ||
library(httptest2) | ||
library(osmdata) | ||
|
||
test_check("osmdata") |
60 changes: 60 additions & 0 deletions
60
tests/testthat/mock_features/wiki.openstreetmap.org/wiki/Map_Features.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
79 changes: 79 additions & 0 deletions
79
tests/testthat/mock_tags/wiki.openstreetmap.org/wiki/Map_Features.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.