Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
silkaj
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
silkaj
Commits
5dac2ae0
Commit
5dac2ae0
authored
3 years ago
by
matograine
Committed by
Moul
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[test]
#416
modify tests for idty_tools to match new behavior.
parent
84a3d7b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!170
#89: Implement revocation command
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_idty_tools.py
+3
-2
3 additions, 2 deletions
tests/test_idty_tools.py
with
3 additions
and
2 deletions
tests/test_idty_tools.py
+
3
−
2
View file @
5dac2ae0
...
...
@@ -33,6 +33,7 @@ from patched.idty_tools import (
)
from
silkaj
import
idty_tools
from
silkaj.constants
import
ALL
,
PUBKEY_PATTERN
from
silkaj.tui
import
display_pubkey_and_checksum
## used test identities
...
...
@@ -351,7 +352,7 @@ def test_display_identity(idty, monkeypatch, capsys):
None
,
None
,
[
"
Revocation document does not match any valid identity.
Error: HTTP Error 404: Not Found TEST
"
f
"
Revocation document does not match any valid identity.
\n
uid:
{
idty1
.
uid
}
\n
pubkey:
{
display_pubkey_and_checksum
(
idty1
.
pubkey
)
}
"
],
False
,
),
...
...
@@ -384,7 +385,7 @@ def test_check_many_identities(
# identity does not exist
if
expected
==
[
"
Revocation document does not match any valid identity.
Error: HTTP Error 404: Not Found TEST
"
f
"
Revocation document does not match any valid identity.
\n
uid:
{
idty
.
uid
}
\n
pubkey:
{
display_pubkey_and_checksum
(
idty
.
pubkey
)
}
"
]:
with
pytest
.
raises
(
SystemExit
)
as
pytest_exit
:
result
=
idty_tools
.
check_many_identities
(
idty
,
doc_type
)
...
...
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