def test_run_hundred_rounds(self): engine = Engine(total_rounds=100) assert engine.current_round == 0 assert engine.rounds_run == 0 engine.run() assert engine.rounds_run == 100 assert engine.current_round == 100
def test_run_hundred_rounds(self): engine = Engine(total_rounds=100, round_time_sleep=0, worker_wait_time=0) assert engine.current_round == 0 assert engine.rounds_run == 0 engine.run() assert engine.rounds_run == 100 assert engine.current_round == 100
def test_run_one_round(self): engine = Engine(total_rounds=1) assert engine.rounds_run == 0 engine.run() assert engine.rounds_run == 1 assert engine.current_round == 1
def test_run_one_round(self): engine = Engine(total_rounds=1, round_time_sleep=1, worker_wait_time=1) assert engine.rounds_run == 0 engine.run() assert engine.rounds_run == 1 assert engine.current_round == 1