Skip to content
Snippets Groups Projects
manager_drmaa_test.py 717 B
Newer Older
John Chilton's avatar
John Chilton committed
from .test_utils import (
    BaseManagerTestCase,
    skip_unless_module
John Chilton's avatar
John Chilton committed
)

from pulsar.managers.queued_drmaa import DrmaaQueueManager


class DrmaaManagerTest(BaseManagerTestCase):

    def setUp(self):
        super(DrmaaManagerTest, self).setUp()
        self._set_manager()

    def tearDown(self):
        super(DrmaaManagerTest, self).setUp()
        self.manager.shutdown()

    def _set_manager(self, **kwds):
        self.manager = DrmaaQueueManager('_default_', self.app, **kwds)

    @skip_unless_module("drmaa")
John Chilton's avatar
John Chilton committed
    def test_simple_execution(self):
        self._test_simple_execution(self.manager)

    @skip_unless_module("drmaa")
John Chilton's avatar
John Chilton committed
    def test_cancel(self):
        self._test_cancelling(self.manager)