tests: use larger grid to avoid rouding errors

This commit is contained in:
Sarah Hoffmann
2020-08-22 16:04:24 +02:00
parent 777c70926a
commit 76ddace267

View File

@@ -4,13 +4,13 @@ import random
import os import os
from nose.tools import * # for assert functions 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): def define_node_grid(context, grid_step):
""" """
Define a grid of node positions. Define a grid of node positions.
""" """
if grid_step is not None: if grid_step is not None:
grid_step = int(grd_step.strip()) grid_step = float(grid_step.strip())
else: else:
grid_step = 0.00001 grid_step = 0.00001