shorten lines to match lint criteria
@@ -605,7 +605,8 @@ class ActionsControllerTestCase(FunctionalTest, APIControllerWithIncludeAndExclu
@mock.patch.object(action_validator, 'validate_action', mock.MagicMock(
return_value=True))
def test_get_one_using_name_parameter(self):
- action_id, action_name = self.__get_action_id_and_additional_attribute(self.__do_post(ACTION_1), 'name')
+ action_id, action_name = self.__get_action_id_and_additional_attribute(
+ self.__do_post(ACTION_1), 'name')
get_resp = self.__do_get_actions_by_url_parameter('name', action_name)
self.assertEqual(get_resp.status_int, 200)
self.assertEqual(get_resp.json[0]['id'], action_id)
@@ -615,7 +616,8 @@ class ActionsControllerTestCase(FunctionalTest, APIControllerWithIncludeAndExclu
@mock.patch.object(action_validator, 'validate_action', mock.MagicMock(
return_value=True))
def test_get_one_using_pack_parameter(self):
- action_id, action_pack = self.__get_action_id_and_additional_attribute(self.__do_post(ACTION_10), 'pack')
+ action_id, action_pack = self.__get_action_id_and_additional_attribute(
+ self.__do_post(ACTION_10), 'pack')
get_resp = self.__do_get_actions_by_url_parameter('pack', action_pack)
self.assertEqual(get_resp.status_int, 200)
self.assertEqual(get_resp.json[0]['id'], action_id)
@@ -625,7 +627,8 @@ class ActionsControllerTestCase(FunctionalTest, APIControllerWithIncludeAndExclu
@mock.patch.object(action_validator, 'validate_action', mock.MagicMock(
return_value=True))
def test_get_one_using_tag_parameter(self):
- action_id, action_tags = self.__get_action_id_and_additional_attribute(self.__do_post(ACTION_1), 'tags')
+ action_id, action_tags = self.__get_action_id_and_additional_attribute(
+ self.__do_post(ACTION_1), 'tags')
get_resp = self.__do_get_actions_by_url_parameter('tags', action_tags[0]['name'])
self.assertEqual(get_resp.status_int, 200)
self.assertEqual(get_resp.json[0]['id'], action_id)
