X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a2b486a5b0797430b0f99caf1d183212ad815db5..e6775e713c2a1c009f7a01fad674a545e0e6bb39:/test/bdd/steps/steps_osm_data.py diff --git a/test/bdd/steps/steps_osm_data.py b/test/bdd/steps/steps_osm_data.py index 6471d76d..94f72796 100644 --- a/test/bdd/steps/steps_osm_data.py +++ b/test/bdd/steps/steps_osm_data.py @@ -47,10 +47,6 @@ def write_opl_file(opl, grid): return fd.name -@given(u'the scene (?P.+)') -def set_default_scene(context, scene): - context.scene = scene - @given(u'the ([0-9.]+ )?grid(?: with origin (?P.*))?') def define_node_grid(context, grid_step, origin): """ @@ -69,7 +65,7 @@ def define_node_grid(context, grid_step, origin): coords = origin.split(',') if len(coords) != 2: raise RuntimeError('Grid origin expects orgin with x,y coordinates.') - origin(float(coords[0]), float(coords[1])) + origin = (float(coords[0]), float(coords[1])) elif origin in ALIASES: origin = ALIASES[origin] else: