rename and add basic tests

This commit is contained in:
Sarah Hoffmann
2016-11-07 21:16:28 +01:00
parent 65bf6dbff7
commit c56c09e2c0
5 changed files with 149 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
@DB
Feature: Import of simple objects
Testing simple stuff
@wip
Scenario: Import place node
Given the places
| osm | class | type | name | geometry |
| N1 | place | village | 'name' : 'Foo' | 10.0 -10.0 |
And the named places
| osm | class | type | housenumber |
| N2 | place | village | |
When importing
Then table placex contains
| object | class | type | name | centroid |
| N1 | place | village | 'name' : 'Foo' | 10.0,-10.0 +- 1m |
When sending query "Foo"
Then results contain
| ID | osm_type | osm_id |
| 0 | N | 1 |

1
test/bdd/db/test.feature Normal file
View File

@@ -0,0 +1 @@
Feature: Test