@@ -13,6 +13,7 @@ def test_init_method(self):
1313 Q = ciw .Simulation (ciw .create_network_from_yml (
1414 'ciw/tests/testing_parameters/params.yml' ))
1515 N = ciw .ArrivalNode (Q )
16+ N .initialise ()
1617 self .assertEqual (round (N .next_event_date , 5 ), 0.00440 )
1718 self .assertEqual (N .number_of_individuals , 0 )
1819 self .assertEqual (N .number_of_individuals_per_class , [0 , 0 , 0 ])
@@ -31,6 +32,7 @@ def test_initialise_event_dates_dict_method(self):
3132 Q = ciw .Simulation (ciw .create_network_from_yml (
3233 'ciw/tests/testing_parameters/params.yml' ))
3334 N = ciw .ArrivalNode (Q )
35+ N .initialise ()
3436 dates_dict_1 = {1 : {0 : 0.4362282541 , 1 : 0.2672232406 , 2 : 0.3864256273 },
3537 2 : {0 : 0.1636952311 , 1 : 0.0714709565 , 2 : 0.8065738414 },
3638 3 : {0 : 0.4088480190 , 1 : 0.0514323248 , 2 : 0.8132038176 },
@@ -58,6 +60,7 @@ def test_find_next_event_date_method(self):
5860 Q = ciw .Simulation (ciw .create_network_from_yml (
5961 'ciw/tests/testing_parameters/params.yml' ))
6062 N = ciw .ArrivalNode (Q )
63+ N .initialise ()
6164 self .assertEqual (round (N .next_event_date , 5 ), 0.00105 )
6265 N .find_next_event_date ()
6366 self .assertEqual (round (N .next_event_date , 5 ), 0.00105 )
@@ -74,6 +77,7 @@ def test_have_event_method(self):
7477 Q = ciw .Simulation (ciw .create_network_from_yml (
7578 'ciw/tests/testing_parameters/params.yml' ))
7679 N = ciw .ArrivalNode (Q )
80+ N .initialise ()
7781 self .assertEqual (N .number_of_individuals , 0 )
7882 self .assertEqual (N .number_of_individuals_per_class , [0 , 0 , 0 ])
7983 self .assertEqual (N .number_accepted_individuals , 0 )
@@ -113,6 +117,7 @@ def test_have_event_method(self):
113117 Q = ciw .Simulation (ciw .create_network_from_yml (
114118 'ciw/tests/testing_parameters/params.yml' ))
115119 N = ciw .ArrivalNode (Q )
120+ N .initialise ()
116121 self .assertEqual (N .number_of_individuals , 0 )
117122 self .assertEqual (N .number_of_individuals_per_class , [0 , 0 , 0 ])
118123 self .assertEqual (N .number_accepted_individuals , 0 )
0 commit comments