Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ai
pgp-mime-lib
Commits
afcdd05a
Commit
afcdd05a
authored
Feb 24, 2019
by
sand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re-enable all the tests, except one
parent
6dcb2465
Pipeline
#2363
passed with stage
in 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
pgp_mime_lib/test/test_pgp_mime_lib.py
pgp_mime_lib/test/test_pgp_mime_lib.py
+1
-6
No files found.
pgp_mime_lib/test/test_pgp_mime_lib.py
View file @
afcdd05a
...
...
@@ -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'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment