def test_on_stop(self): with mock.module('threadpool'): x = TaskPool(app=self.app) x.on_start() x.on_stop() x._pool.dismissWorkers.assert_called_with(x.limit, do_join=True)
def test_on_stop(self): with mock_module("threadpool"): x = TaskPool() x.on_start() x.on_stop() x._pool.dismissWorkers.assert_called_with(x.limit, do_join=True)
def test_on_stop(self): with mock_module('threadpool'): x = TaskPool() x.on_start() x.on_stop() x._pool.dismissWorkers.assert_called_with(x.limit, do_join=True)
def test_on_stop(self): with mock.module("threadpool"): x = TaskPool(app=self.app) x.on_start() x.on_stop() x._pool.dismissWorkers.assert_called_with(x.limit, do_join=True)