1
0
mirror of https://github.com/Ahp06/SUMO_Emissions.git synced 2024-11-21 19:16:30 +00:00

Fix tests with vehicle classes

This commit is contained in:
Thibaud Gasser 2019-01-30 15:56:51 +01:00
parent 49672fdcb9
commit c31a83d1d8

View File

@ -86,7 +86,8 @@ class GenerationTests(unittest.TestCase):
osm_file = os.path.join(SCRIPTDIR, 'sample.osm') osm_file = os.path.join(SCRIPTDIR, 'sample.osm')
trips_file = os.path.join(self.sim_path, f'{self.sim_name}.trips.xml') trips_file = os.path.join(self.sim_path, f'{self.sim_name}.trips.xml')
configurator.generate_scenario(osm_file, self.sim_path, self.sim_name) configurator.generate_scenario(osm_file, self.sim_path, self.sim_name)
routefiles = configurator.generate_mobility(self.sim_path, self.sim_name, vclasses=('passenger', 'truck')) classes = {'passenger': 10, 'truck': 1}
routefiles = configurator.generate_mobility(self.sim_path, self.sim_name, vclasses=classes)
self.assert_is_file(trips_file) self.assert_is_file(trips_file)
for f in routefiles: for f in routefiles: