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
fb191c85
Commit
fb191c85
authored
3 years ago
by
Chris Lamb
Browse files
Options
Downloads
Patches
Plain Diff
Test that --help includes the file formats.
parent
60d7a058
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#384454
passed
3 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_main.py
+7
-3
7 additions, 3 deletions
tests/test_main.py
with
7 additions
and
3 deletions
tests/test_main.py
+
7
−
3
View file @
fb191c85
...
...
@@ -2,7 +2,7 @@
# diffoscope: in-depth comparison of files, archives, and directories
#
# Copyright © 2015 Jérémy Bobbio <lunar@debian.org>
# Copyright © 2016-202
0
Chris Lamb <lamby@debian.org>
# Copyright © 2016-202
2
Chris Lamb <lamby@debian.org>
#
# diffoscope is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -18,6 +18,7 @@
# along with diffoscope. If not, see <https://www.gnu.org/licenses/>.
import
os
import
sys
import
pytest
import
signal
import
tempfile
...
...
@@ -175,11 +176,14 @@ def test_non_unicode_filename(capsys, tmpdir):
assert
out
==
err
==
""
def
test_help
(
capsys
):
def
test_help
(
capsys
,
monkeypatch
):
# Fake --help in sys.argv so that we include out file formats in the output
monkeypatch
.
setattr
(
sys
,
"
argv
"
,
[
"
diffoscope
"
,
"
--help
"
])
ret
,
out
,
err
=
run
(
capsys
,
"
--help
"
)
assert
err
==
""
assert
"
options
:
"
in
out
assert
"
file formats supported
:
"
in
out
def
test_usage
(
capsys
):
...
...
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