Commit ffa22d43 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Jérome Perrin

test simulation topology fix

parent d2b57fcc
......@@ -72,8 +72,8 @@ class SimulationTopology(TestCase):
for filepath in glob.glob(os.path.join(project_path, "dream", "simulation",
"JSONInputs", "*.json")):
filename = os.path.basename(filepath)
def getTestTopology():
def getTestTopology(filename = None):
def test_topology(self):
self.checkTopology(filename=filename)
return test_topology
setattr(SimulationTopology, "test_%s" % filename, getTestTopology())
setattr(SimulationTopology, "test_%s" % filename, getTestTopology(filename = filename))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment