diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2018-12-05 09:49:42 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2019-05-11 17:37:57 +0100 |
commit | 6c16e55d78b69284798d0398aaa45b4914ba4eb8 (patch) | |
tree | 7bc3dc71950d0370fd3e8c3c342353b9f824188d | |
parent | a24966346e42421fa020cba285af9fc09c89eaa2 (diff) |
fix pyflakes issues
-rw-r--r-- | alot/commands/globals.py | 2 | ||||
-rw-r--r-- | tests/commands/test_global.py | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 2bd5a076..03e90639 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -881,7 +881,7 @@ class ComposeCommand(Command): def _get_account(self, ui): # find out the right account sender = self.envelope.get('From') - name, addr = email.utils.parseaddr(sender) + _, addr = email.utils.parseaddr(sender) try: account = settings.get_account_by_address(addr) except NoMatchingAccount: diff --git a/tests/commands/test_global.py b/tests/commands/test_global.py index 60ad7993..8fab79ce 100644 --- a/tests/commands/test_global.py +++ b/tests/commands/test_global.py @@ -118,8 +118,7 @@ class TestComposeCommand(unittest.TestCase): cmd._set_envelope() with mock.patch('alot.commands.globals.settings.get_accounts', mock.Mock(return_value=[account])): - await cmd._set_from() - + await cmd._set_from(mock.Mock()) class TestExternalCommand(unittest.TestCase): |