X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b6be33cdedff638fe633e633dc7b73e71261425d..843d3a137c8fa17bd41b4187f76dfc8c8a0311f6:/test/bdd/steps/osm_data.py diff --git a/test/bdd/steps/osm_data.py b/test/bdd/steps/osm_data.py index 122b2461..0f8b1188 100644 --- a/test/bdd/steps/osm_data.py +++ b/test/bdd/steps/osm_data.py @@ -2,15 +2,14 @@ import subprocess import tempfile import random import os -from nose.tools import * # for assert functions -@given(u'the (\d+ )?grid') +@given(u'the ([0-9.]+ )?grid') def define_node_grid(context, grid_step): """ Define a grid of node positions. """ if grid_step is not None: - grid_step = int(grd_step.strip()) + grid_step = float(grid_step.strip()) else: grid_step = 0.00001