Added valid target objectives to the session create/edit form

This commit is contained in:
Dana Van Aken
2019-10-09 00:15:31 -04:00
parent 2b9f199c6f
commit dcb3152ec5
8 changed files with 51 additions and 20 deletions

View File

@@ -254,7 +254,7 @@ class PostgresParserTests(BaseParserTests, TestCase):
super().test_convert_dbms_metrics()
target_obj = target_objectives.THROUGHPUT
target_obj_instance = target_objectives.get_target_objective_instance(
target_obj_instance = target_objectives.get_instance(
self.test_dbms.dbms_id, target_obj)
txns_counter = target_obj_instance.transactions_counter

View File

@@ -143,7 +143,7 @@ class SessionViewsTests(TestCase):
'name': 'test_create_basic_session',
'description': 'testing create basic session...',
'tuning_session': 'no_tuning_session',
'target_objective': target_objectives.get_default_target_objective(),
'target_objective': target_objectives.default(),
'algorithm': 1,
'cpu': '2',
'memory': '16',