Commit afcdd05a authored by sand's avatar sand

re-enable all the tests, except one

parent 6dcb2465
Pipeline #2363 passed with stage
in 33 seconds
......@@ -107,7 +107,7 @@ def test_encrypt_fails_with_bad_public_key(gpg):
)
@pytest.mark.skip("not sure if this is needed")
@pytest.mark.skip("the pgpy implementation do not use a keyring at all")
def test_encrypt_fails_with_our_own_public_key(gpg):
# Being fed our own public key is pretty much the only way to
# get a 0 imported keys result from gpg.
......@@ -197,7 +197,6 @@ def encrypt_test_msg():
return _encrypt_test_msg
@pytest.mark.skip("rewrite this test")
def test_simple_text_message(gpg, encrypt_test_msg):
result = encrypt_test_msg(gpg, MIMEText('test message'))
assert result.is_multipart() is True
......@@ -211,7 +210,6 @@ def test_simple_text_message(gpg, encrypt_test_msg):
assert encrypted.is_encrypted is True
@pytest.mark.skip("rewrite this test")
def test_base64_text_message(gpg, encrypt_test_msg):
result = encrypt_test_msg(gpg, MIMEText(u'test message', 'plain', 'utf-8'))
assert result.is_multipart() is True
......@@ -224,14 +222,12 @@ def test_base64_text_message(gpg, encrypt_test_msg):
assert encrypted.is_encrypted is True
@pytest.mark.skip("rewrite this test")
def test_8bit_text_message(gpg, encrypt_test_msg):
m = MIMEText(u'test message')
m.replace_header('Content-Transfer-Encoding', '8bit')
assert encrypt_test_msg(gpg, m) is not None
@pytest.mark.skip("rewrite this test")
def test_multipart_message_with_image(gpg, encrypt_test_msg):
msg = MIMEMultipart()
msg.preamble = 'This is a message with an image attachment'
......@@ -239,7 +235,6 @@ def test_multipart_message_with_image(gpg, encrypt_test_msg):
assert encrypt_test_msg(gpg, msg) is not None
@pytest.mark.skip("rewrite this test")
def test_multipart_alternative(gpg, encrypt_test_msg):
msg = MIMEMultipart('alternative')
msg.attach(MIMEText('text version', 'plain'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment