summaryrefslogtreecommitdiff
path: root/tests/commands
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-08-10 15:38:58 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-08-11 08:25:51 -0700
commit35f7c26c9187e06e8cbeb0a03dd0721174b7ead2 (patch)
tree9a50a062e7e447f467969a4e2d919d38242aac28 /tests/commands
parentc3a0ec29c55a6ecade79bfd11f44965e0e9a1640 (diff)
commands: Don't try to sign_by_default without a gpg key
Currently it's possible to set sign_by_default without setting a default key. This is obviously not a good plan for all sorts of reasons. This fixes the two failing tests from the last commit.
Diffstat (limited to 'tests/commands')
-rw-r--r--tests/commands/global_test.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/commands/global_test.py b/tests/commands/global_test.py
index c3f2765b..860a6ccb 100644
--- a/tests/commands/global_test.py
+++ b/tests/commands/global_test.py
@@ -25,11 +25,6 @@ import mock
from alot.commands import globals as g_commands
-def expected_failure(func):
- func.todo = 'Expected Failure'
- return func
-
-
class Stop(Exception):
"""exception for stopping testing of giant unmanagable functions."""
pass
@@ -78,7 +73,6 @@ class TestComposeCommand(unittest.TestCase):
self.assertTrue(envelope.sign)
self.assertIs(envelope.sign_key, mock.sentinel.gpg_key)
- @expected_failure # sign_key is set even though sign is False
@inlineCallbacks
def test_apply_sign_by_default_false_doesnt_set_key(self):
envelope = self._make_envelope_mock()
@@ -101,7 +95,6 @@ class TestComposeCommand(unittest.TestCase):
self.assertFalse(envelope.sign)
self.assertIs(envelope.sign_key, None)
- @expected_failure # sign is set even though there is no sign_key
@inlineCallbacks
def test_apply_sign_by_default_but_no_key(self):
envelope = self._make_envelope_mock()