bdd: move scene setup to OSM data steps

The step has nothing to do with the database.
This commit is contained in:
Sarah Hoffmann 2021-01-05 11:26:39 +01:00
parent 5dfa76a610
commit b8e39d2dde
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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):
"""