Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
monkeysign
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simonft
monkeysign
Commits
0066d682
Commit
0066d682
authored
10 years ago
by
Antoine Beaupré
Browse files
Options
Downloads
Patches
Plain Diff
add debug code for test_import_fail() failure
it fails when more than one tests are ran for some reason
parent
dbc338cf
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_gpg.py
+8
-2
8 additions, 2 deletions
tests/test_gpg.py
with
8 additions
and
2 deletions
tests/test_gpg.py
+
8
−
2
View file @
0066d682
...
@@ -138,8 +138,14 @@ class TestKeyringBasics(TestKeyringBase):
...
@@ -138,8 +138,14 @@ class TestKeyringBasics(TestKeyringBase):
self
.
assertGreater
(
len
(
pubkeys
),
0
)
self
.
assertGreater
(
len
(
pubkeys
),
0
)
def
test_import_fail
(
self
):
def
test_import_fail
(
self
):
"""
test that import_keys() throws an error on wrong data
"""
"""
test that import_keys() throws an error on wrong data
self
.
assertFalse
(
self
.
gpg
.
import_keys
(
'
THIS IS NOT A PUBLIC KEY
'
))
XXX: this fails when more than one tests are ran, for an
unknown reason
"""
res
=
self
.
gpg
.
import_keys
(
'
THIS IS NOT A PUBLIC KEY
'
)
if
res
:
print
"
unexpected fingerprints: %s, counts: %s
"
%
(
res
.
fingerprints
,
res
.
counts
)
self
.
assertFalse
(
res
)
def
test_export
(
self
):
def
test_export
(
self
):
"""
test that we can export data similar to what we import
"""
test that we can export data similar to what we import
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment