From d50c5c62a628d1f56f81f2cdc6e48042f4e344f0 Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Fri, 12 Apr 2019 09:11:13 +0100 Subject: remove test for ComposeCommand._set_from.. .. which was replaced earlier --- tests/commands/test_global.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'tests') diff --git a/tests/commands/test_global.py b/tests/commands/test_global.py index 8fab79ce..acdd1f0a 100644 --- a/tests/commands/test_global.py +++ b/tests/commands/test_global.py @@ -105,20 +105,6 @@ class TestComposeCommand(unittest.TestCase): 'Subject': [subject]}, cmd.envelope.headers) self.assertEqual(body, cmd.envelope.body) - @utilities.async_test - async def test_set_from_single_account(self): - # issue #1277 - envelope = self._make_envelope_mock() - del envelope.headers['From'] - envelope.account = self._make_account_mock() - envelope.account.realname = "foo" - envelope.account.address = 1 # maybe this should be a real Address? - cmd = g_commands.ComposeCommand(envelope=envelope) - - cmd._set_envelope() - with mock.patch('alot.commands.globals.settings.get_accounts', - mock.Mock(return_value=[account])): - await cmd._set_from(mock.Mock()) class TestExternalCommand(unittest.TestCase): -- cgit v1.2.3