-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and improve tests for full object calls
- Loading branch information
Showing
9 changed files
with
1,853 additions
and
43 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
12 changes: 12 additions & 0 deletions
12
tests/testthat/mock_full_object/osm.org/api/0.6/nodes-41cde1.xml
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,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<osm version="0.6" generator="CGImap 0.8.10 (012345 ******.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/"> | ||
<node id="35308286" visible="true" version="17" changeset="140341361" timestamp="2023-08-24T20:19:22Z" user="jmaspons" uid="11725140" lat="42.5189047" lon="2.4565596"> | ||
<tag k="ele" v="2784.66"/> | ||
<tag k="name" v="Pic du Canigou"/> | ||
<tag k="name:ca" v="Pic del Canigó"/> | ||
<tag k="natural" v="peak"/> | ||
<tag k="prominence" v="550"/> | ||
<tag k="summit:cross" v="yes"/> | ||
<tag k="summit:register" v="no"/> | ||
</node> | ||
</osm> |
23 changes: 23 additions & 0 deletions
23
tests/testthat/mock_full_object/osm.org/api/0.6/way/235744929/full.xml
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,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<osm version="0.6" generator="CGImap 0.8.10 (012345 ******.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/"> | ||
<node id="2438033107" visible="true" version="2" changeset="37791155" timestamp="2016-03-12T21:57:59Z" user="Jose Antonio Fontaneda" uid="2130444" lat="41.3838674" lon="2.1824148"/> | ||
<node id="2438033109" visible="true" version="2" changeset="37791155" timestamp="2016-03-12T21:57:59Z" user="Jose Antonio Fontaneda" uid="2130444" lat="41.3836273" lon="2.1822465"/> | ||
<node id="2992282983" visible="true" version="2" changeset="37791155" timestamp="2016-03-12T21:58:00Z" user="Jose Antonio Fontaneda" uid="2130444" lat="41.3836295" lon="2.1822400"/> | ||
<node id="2992282984" visible="true" version="2" changeset="37791155" timestamp="2016-03-12T21:58:00Z" user="Jose Antonio Fontaneda" uid="2130444" lat="41.3838706" lon="2.1824067"/> | ||
<way id="235744929" visible="true" version="7" changeset="115317958" timestamp="2021-12-24T03:46:41Z" user="jmaspons" uid="11725140"> | ||
<nd ref="2438033107"/> | ||
<nd ref="2438033109"/> | ||
<nd ref="2992282983"/> | ||
<nd ref="2992282984"/> | ||
<nd ref="2438033107"/> | ||
<tag k="architect" v="Carme Fiol"/> | ||
<tag k="barrier" v="wall"/> | ||
<tag k="historic" v="memorial"/> | ||
<tag k="inscription" v="Al fossar de les moreres no s'hi enterra cap traïdor;fins perdent nostres banderes serà l'urna de l'honor."/> | ||
<tag k="name" v="Fossar de les Moreres"/> | ||
<tag k="name:ca" v="Fossar de les Moreres"/> | ||
<tag k="start_date" v="1989"/> | ||
<tag k="wikidata" v="Q2749521"/> | ||
<tag k="wikipedia" v="ca:Fossar de les Moreres"/> | ||
</way> | ||
</osm> |
29 changes: 29 additions & 0 deletions
29
tests/testthat/mock_full_object_json/osm.org/api/0.6/nodes.json-41cde1.json
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,29 @@ | ||
{ | ||
"version": "0.6", | ||
"generator": "CGImap 0.8.10 (012345 ******.openstreetmap.org)", | ||
"copyright": "OpenStreetMap and contributors", | ||
"attribution": "http://www.openstreetmap.org/copyright", | ||
"license": "http://opendatacommons.org/licenses/odbl/1-0/", | ||
"elements": [ | ||
{ | ||
"type": "node", | ||
"id": 35308286, | ||
"lat": 42.5189047, | ||
"lon": 2.4565596, | ||
"timestamp": "2023-08-24T20:19:22Z", | ||
"version": 17, | ||
"changeset": 140341361, | ||
"user": "jmaspons", | ||
"uid": 11725140, | ||
"tags": { | ||
"ele": "2784.66", | ||
"name": "Pic du Canigou", | ||
"name:ca": "Pic del Canigó", | ||
"natural": "peak", | ||
"prominence": "550", | ||
"summit:cross": "yes", | ||
"summit:register": "no" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.