Merge "Remove simple priority support from the API"

This commit is contained in:
Zuul 2019-05-02 18:26:07 +00:00 committed by Gerrit Code Review
commit af301beaed
2 changed files with 0 additions and 8 deletions

View File

@ -331,9 +331,6 @@ class Task(base.APIBase):
assignee_id = int
"""The ID of the invidiual to whom this task is assigned."""
priority = wtypes.text
"""The priority for this task, one of 'low', 'medium', 'high'"""
branch_id = int
"""The ID of corresponding Branch"""
@ -353,7 +350,6 @@ class Task(base.APIBase):
link="Some notes about the task, this name is bad.",
project_id=1,
assignee_id=1,
priority="medium",
branch_id=1,
milestone_id=1,
due_dates=[1, 2, 3])

View File

@ -173,8 +173,6 @@ class TestNotificationHook(base.BaseDbTestCase):
sample_task_wmodel.project_id)
self.assertEqual(old_entity_values['assignee_id'],
sample_task_wmodel.assignee_id)
self.assertEqual(old_entity_values['priority'],
sample_task_wmodel.priority)
@patch('storyboard.db.api.base.entity_get')
def test_old_entity_values_set_on_state_by_before(self, mock_entity_get):
@ -218,8 +216,6 @@ class TestNotificationHook(base.BaseDbTestCase):
sample_task_wmodel.project_id)
self.assertEqual(mock_state.old_entity_values['assignee_id'],
sample_task_wmodel.assignee_id)
self.assertEqual(mock_state.old_entity_values['priority'],
sample_task_wmodel.priority)
@patch('storyboard.notifications.notification_hook.publish')
@patch.object(NotificationHook, 'get_original_resource')