Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
diffoscope
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reproducible Builds
diffoscope
Commits
e8c5dc10
You need to sign in or sign up before continuing.
Commit
e8c5dc10
authored
10 months ago
by
Chris Lamb
Browse files
Options
Downloads
Patches
Plain Diff
Move to assert_diff in test_openssh_pub_key.py
parent
73966620
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/comparators/test_openssh_pub_key.py
+2
-3
2 additions, 3 deletions
tests/comparators/test_openssh_pub_key.py
with
2 additions
and
3 deletions
tests/comparators/test_openssh_pub_key.py
+
2
−
3
View file @
e8c5dc10
...
...
@@ -25,7 +25,7 @@ from diffoscope.config import Config
from
diffoscope.comparators.openssh
import
PublicKeyFile
from
diffoscope.comparators.missing_file
import
MissingFile
from
..utils.data
import
load_fixture
,
get_data
from
..utils.data
import
assert_diff
,
load_fixture
from
..utils.tools
import
skip_unless_tools_exist
,
skip_unless_tool_is_at_least
...
...
@@ -56,8 +56,7 @@ def differences(opensshpubkey1, opensshpubkey2):
@skip_unless_tool_is_at_least
(
"
ssh-keygen
"
,
openssh_version
,
"
6.9
"
)
def
test_diff
(
differences
):
expected_diff
=
get_data
(
"
openssh_pub_key_expected_diff
"
)
assert
differences
[
0
].
unified_diff
==
expected_diff
assert_diff
(
differences
[
0
],
"
openssh_pub_key_expected_diff
"
)
@skip_unless_tools_exist
(
"
ssh-keygen
"
)
...
...
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