Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/tests/test_api_client.py
Show All 19 Lines | class RemoteSchedulerTest(CommonSchedulerTest, ServerTestFixture, | ||||
therefore defined in CommonSchedulerTest. | therefore defined in CommonSchedulerTest. | ||||
""" | """ | ||||
def setUp(self): | def setUp(self): | ||||
self.config = { | self.config = { | ||||
'scheduler': { | 'scheduler': { | ||||
'cls': 'local', | 'cls': 'local', | ||||
'args': { | 'args': { | ||||
'scheduling_db': 'dbname=%s' % self.TEST_DB_NAME, | 'db': 'dbname=%s' % self.TEST_DB_NAME, | ||||
} | } | ||||
} | } | ||||
} | } | ||||
self.app = app # this will setup the local scheduler... | self.app = app # this will setup the local scheduler... | ||||
super().setUp() | super().setUp() | ||||
# accessible through a remote scheduler accessible on the | # accessible through a remote scheduler accessible on the | ||||
# given port | # given port | ||||
self.backend = get_scheduler('remote', {'url': self.url()}) | self.backend = get_scheduler('remote', {'url': self.url()}) |