From 07c64673f76edfda5129d200cec52861d1ce41b2 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 18 Apr 2020 17:06:07 -0700 Subject: [PATCH] test_jira: Remove redefined test_edit method. Signed-off-by: Anders Kaseorg --- zulip_bots/zulip_bots/bots/jira/test_jira.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/zulip_bots/zulip_bots/bots/jira/test_jira.py b/zulip_bots/zulip_bots/bots/jira/test_jira.py index e48f3be..362490a 100644 --- a/zulip_bots/zulip_bots/bots/jira/test_jira.py +++ b/zulip_bots/zulip_bots/bots/jira/test_jira.py @@ -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'):