implement BDD osm2pgsql tests with pytest-bdd

This commit is contained in:
Sarah Hoffmann
2025-03-31 09:39:01 +02:00
parent 0f725b1880
commit fb440f29a2
18 changed files with 2409 additions and 17 deletions

View File

@@ -136,8 +136,8 @@ Feature: Json output for Reverse API
Then a HTTP 200 is returned
And the result is valid json
And the result contains
| geotext!fm |
| LINESTRING\(9.5039353 47.0657546, ?9.5040437 47.0657781, ?9.5040808 47.065787, ?9.5054298 47.0661407\) |
| geotext!wkt |
| 9.5039353 47.0657546, 9.5040437 47.0657781, 9.5040808 47.065787, 9.5054298 47.0661407 |
Examples:
| format |

View File

@@ -92,8 +92,8 @@ Feature: XML output for Reverse API
Then a HTTP 200 is returned
And the result is valid xml
And the result contains
| geotext!fm |
| LINESTRING\(9.5039353 47.0657546, ?9.5040437 47.0657781, ?9.5040808 47.065787, ?9.5054298 47.0661407\) |
| geotext!wkt |
| 9.5039353 47.0657546, 9.5040437 47.0657781, 9.5040808 47.065787, 9.5054298 47.0661407 |
Scenario: Reverse XML - Output of SVG
When sending v1/reverse with format xml