def test_run(self): event = Event() mock_driver = mock.Mock(spec=ExecutorDriver) event.set() executor_timeout = ExecutorTimeout(event, mock_driver, timeout=Amount(0, Time.SECONDS)) executor_timeout.run() assert mock_driver.stop.call_count == 0
def test_run(self): event = Event() mock_driver = mock.Mock(spec=ExecutorDriver) event.set() executor_timeout = ExecutorTimeout(event, mock_driver, timeout=Amount(0, Time.SECONDS)) executor_timeout.run() assert mock_driver.stop.call_count == 0
def test_run(self): event = Event() mock_driver = mock.create_autospec(spec=ExecutorDriver, instance=True) event.set() executor_timeout = ExecutorTimeout(event, mock_driver, timeout=Amount(0, Time.SECONDS)) executor_timeout.run() assert mock_driver.stop.call_count == 0
def test_run_timeout(self): event = Event() mock_driver = mock.create_autospec(spec=ExecutorDriver, instance=True) executor_timeout = ExecutorTimeout(event, mock_driver, timeout=Amount(0, Time.SECONDS)) executor_timeout.run() mock_driver.stop.assert_called_once_with()
def test_run(self): event = Event() mock_driver = mock.create_autospec(spec=ExecutorDriver, instance=True) event.set() executor_timeout = ExecutorTimeout(event, mock_driver, timeout=Amount(0, Time.SECONDS)) executor_timeout.run() assert mock_driver.stop.call_count == 0
def test_run_timeout(self): event = Event() mock_driver = mock.Mock(spec=ExecutorDriver) executor_timeout = ExecutorTimeout(event, mock_driver, timeout=Amount(0, Time.SECONDS)) executor_timeout.run() mock_driver.stop.assert_called_once_with()
def test_run_timeout(self): event = Event() mock_driver = mock.Mock(spec=ExecutorDriver) executor_timeout = ExecutorTimeout(event, mock_driver, timeout=Amount(0, Time.SECONDS)) executor_timeout.run() mock_driver.stop.assert_called_once_with()
def test_run_timeout(self): event = Event() mock_driver = mock.create_autospec(spec=ExecutorDriver, instance=True) executor_timeout = ExecutorTimeout(event, mock_driver, timeout=Amount(0, Time.SECONDS)) executor_timeout.run() mock_driver.stop.assert_called_once_with()