File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,28 @@ def helper_warmup(warm_up_period):
220220 f'but got { first_none ["q_time_nurse" ]} .'
221221 )
222222
223+ # Check that the first interval audit entry with no warm-up has time and
224+ # results of 0
225+ first_interval = results_none ['interval_audit' ].iloc [0 ]
226+ assert first_interval ['simulation_time' ] == 0 , (
227+ 'With no warm-up, expect first entry in interval audit results to be ' +
228+ f'at time 0, but it was at time { first_interval ['simulation_time' ]} .'
229+ )
230+ assert first_interval ['utilisation' ] == 0 , (
231+ 'With no warm-up, expect first entry in interval audit results to ' +
232+ f'have 0 utilisation, but it was { first_interval ['utilisation' ]} .'
233+ )
234+ assert first_interval ['queue_length' ] == 0 , (
235+ 'With no warm-up, expect first entry in interval audit results to ' +
236+ 'have no queue, but there was queue length of ' +
237+ f'{ first_interval ['queue_length' ]} .'
238+ )
239+ assert first_interval ['running_mean_wait_time' ] == 0 , (
240+ 'With no warm-up, expect first entry in interval audit results to ' +
241+ 'have running mean wait time of 0 but it was ' +
242+ f'{ first_interval ['running_mean_wait_time' ]} .'
243+ )
244+
223245
224246def test_arrivals ():
225247 """
You can’t perform that action at this time.
0 commit comments