mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-25 14:02:12 +03:00
bdd: move scene setup to OSM data steps
The step has nothing to do with the database.
This commit is contained in:
parent
5dfa76a610
commit
b8e39d2dde
@ -220,10 +220,6 @@ def assert_db_column(row, column, value, context):
|
||||
|
||||
################################ GIVEN ##################################
|
||||
|
||||
@given(u'the scene (?P<scene>.+)')
|
||||
def set_default_scene(context, scene):
|
||||
context.scene = scene
|
||||
|
||||
@given("the (?P<named>named )?places")
|
||||
def add_data_to_place_table(context, named):
|
||||
with context.db.cursor() as cur:
|
||||
|
@ -22,6 +22,10 @@ def write_opl_file(opl, grid):
|
||||
|
||||
return fd.name
|
||||
|
||||
@given(u'the scene (?P<scene>.+)')
|
||||
def set_default_scene(context, scene):
|
||||
context.scene = scene
|
||||
|
||||
@given(u'the ([0-9.]+ )?grid')
|
||||
def define_node_grid(context, grid_step):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user