[diffoscope] 05/05: tests: Test that no arguments (beyond the filenames) prints the text output.

Chris Lamb chris at chris-lamb.co.uk
Sun Jan 22 07:31:30 CET 2017


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit 152509441aafe0f4c45921ca18cb7286832fda88
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Jan 22 19:24:13 2017 +1300

    tests: Test that no arguments (beyond the filenames) prints the text output.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 tests/test_presenters.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/test_presenters.py b/tests/test_presenters.py
index b068b65..6e075a8 100644
--- a/tests/test_presenters.py
+++ b/tests/test_presenters.py
@@ -61,6 +61,11 @@ def extract_body(val):
 
     return result
 
+def test_text_option_is_default(capsys):
+    out = run(capsys)
+
+    assert out == data('output.txt')
+
 def test_text_option_color(capsys):
     out = run(capsys, '--text-color=always')
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list