3
3
from hive .config .network import Network
4
4
from hive .initialization .initialize_simulation import initialize_simulation
5
5
from hive .initialization .initialize_simulation_with_sampling import initialize_simulation_with_sampling
6
- from hive .runner import LocalSimulationRunner
7
6
from tests .mock_lobster import *
8
7
9
8
@@ -13,7 +12,8 @@ def test_initialize_simulation(self):
13
12
conf = mock_config ()
14
13
15
14
# deactivate logging to avoid writing log outputs from the test
16
- updated_global_config = conf .global_config ._replace (log_states = False , log_run = False , log_events = False , log_instructions = False , log_stats = False )
15
+ updated_global_config = conf .global_config ._replace (log_states = False , log_run = False , log_events = False ,
16
+ log_instructions = False , log_stats = False )
17
17
18
18
updated_conf = conf ._replace (global_config = updated_global_config )
19
19
@@ -29,13 +29,15 @@ def test_initialize_simulation_with_sampling(self):
29
29
))
30
30
31
31
new_input = conf .input_config ._replace (
32
- road_network_file = Path (resource_filename ("hive.resources.scenarios.denver_downtown.road_network" , "downtown_denver_network.json" ))
32
+ road_network_file = Path (resource_filename ("hive.resources.scenarios.denver_downtown.road_network" ,
33
+ "downtown_denver_network.json" ))
33
34
)
34
35
35
36
conf = conf ._replace (input_config = new_input )
36
37
37
38
# deactivate logging to avoid writing log outputs from the test
38
- updated_global_config = conf .global_config ._replace (log_states = False , log_run = False , log_events = False , log_instructions = False , log_stats = False )
39
+ updated_global_config = conf .global_config ._replace (log_states = False , log_run = False , log_events = False ,
40
+ log_instructions = False , log_stats = False )
39
41
40
42
updated_conf = conf ._replace (global_config = updated_global_config )
41
43
@@ -46,4 +48,3 @@ def test_initialize_simulation_with_sampling(self):
46
48
self .assertEqual (len (sim .vehicles ), 20 , "should have loaded 20 vehicles" )
47
49
self .assertEqual (len (sim .stations ), 4 , "should have loaded 4 stations" )
48
50
self .assertEqual (len (sim .bases ), 2 , "should have loaded 2 bases" )
49
-
0 commit comments