]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/steps/steps_osm_data.py
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / test / bdd / steps / steps_osm_data.py
index 6471d76d9c62e0bc67b6c56078b5b481eb909660..94f727966af621a9011795c4f08c37a85819dc66 100644 (file)
@@ -47,10 +47,6 @@ 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(?: with origin (?P<origin>.*))?')
 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: