Added EfficacyIndicator model in DB
In this changeset, I created a new model named EfficacyIndicator which is responsible for storing information regarding the efficacy indicators that were computed by the strategy in its solution. Every efficacy indicator should relate to a single Action Plan. Partially Implements: blueprint efficacy-indicator Change-Id: Ifc14ea5e16e92f032d7912c9b3fdc270af79cab6
This commit is contained in:
@@ -273,7 +273,12 @@ class DbGoalTestCase(base.DbTestCase):
|
||||
self.assertEqual([goal2['uuid']], [r.uuid for r in res])
|
||||
|
||||
def test_get_goal_by_uuid(self):
|
||||
created_goal = self._create_test_goal()
|
||||
efficacy_spec = [{"unit": "%", "name": "dummy",
|
||||
"schema": "Range(min=0, max=100, min_included=True, "
|
||||
"max_included=True, msg=None)",
|
||||
"description": "Dummy indicator"}]
|
||||
created_goal = self._create_test_goal(
|
||||
efficacy_specification=efficacy_spec)
|
||||
goal = self.dbapi.get_goal_by_uuid(self.context, created_goal['uuid'])
|
||||
self.assertEqual(goal.uuid, created_goal['uuid'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user