Skip to content
Snippets Groups Projects
Commit e7008d39 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

SW-800: fixes

parent 502a4ea6
No related branches found
No related tags found
1 merge request!24SW-800: Make sure open and close get called on MoMQueryRPC when using the schedulers
......@@ -43,12 +43,12 @@ except ImportError:
import radb_common_testing
# def setUpModule():
# return radb_common_testing.setUpModule()
#
#
# def tearDownModule():
# return radb_common_testing.tearDownModule()
def setUpModule():
return radb_common_testing.setUpModule()
def tearDownModule():
return radb_common_testing.tearDownModule()
class SchedulerTest(radb_common_testing.RADBCommonTest):
......@@ -518,7 +518,7 @@ class PrioritySchedulerTest(StationSchedulerTest):
return PriorityScheduler(task_id,
specification_tree if specification_tree else self.get_specification_tree(task_id),
resource_estimator if resource_estimator else self.fake_resource_estimator,
self.resource_availability_checker, self.radb._dbcreds)
self.resource_availability_checker, self.radb.dbcreds)
def test_unschedule_lower_priority_future_task(self):
"""
......
......@@ -48,11 +48,6 @@ def tearDownModule():
class RADBCommonTest(unittest.TestCase):
def setUp(self):
if Postgresql is None:
# setUpModule isn't called when running unittests from other modules which incluse this one...
# so, call it here if needed.
setUpModule()
logger.info('setting up test RA database...')
# connect to shared test db
self.postgresql = Postgresql() # fresh db instead of shared one: self.postgresql = testing.postgresql.Postgresql()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment