X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4c7145c2938022d8355f49eb89a5ae1a68217a18..56fd1bc1b5fde69ec2258aa94c4c9cb493554e41:/test/bdd/steps/osm_data.py?ds=inline diff --git a/test/bdd/steps/osm_data.py b/test/bdd/steps/osm_data.py index 122b2461..bb146ce4 100644 --- a/test/bdd/steps/osm_data.py +++ b/test/bdd/steps/osm_data.py @@ -4,13 +4,13 @@ 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