test_jira: Remove redefined test_edit method.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2020-04-18 17:06:07 -07:00 committed by Tim Abbott
parent a01e5e37f4
commit 07c64673f7

View file

@ -1,4 +1,3 @@
from unittest.mock import patch
from zulip_bots.test_lib import BotTestCase, DefaultTests
class TestJiraBot(BotTestCase, DefaultTests):
@ -159,17 +158,6 @@ Jira Bot:
'with priority "Medium" labeled "issues, testing" due "2018-06-11"',
'Oh no! Jira raised an error:\n > error1')
def test_edit(self) -> None:
with patch('requests.put') as response, \
self.mock_config_info(self.MOCK_CONFIG_INFO):
response.return_value.text = 'text so that it isn\'t assumed to be an error'
response.return_value.json = lambda: self.MOCK_EDIT_JSON
self.verify_reply(
'edit issue "TEST-16" to use description "description"',
self.MOCK_EDIT_RESPONSE
)
def test_edit(self) -> None:
with self.mock_config_info(self.MOCK_CONFIG_INFO), \
self.mock_http_conversation('test_edit'):