[diffoscope] 03/05: tests: Add a test comparing two empty directories.

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 6a47b061fd145aac75c6b8d825ac8843c0e75b3f
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Jan 22 19:16:54 2017 +1300

    tests: Add a test comparing two empty directories.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 tests/test_main.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/test_main.py b/tests/test_main.py
index 2e296a4..f81bd34 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -105,6 +105,13 @@ def test_no_differences(capsys):
     assert err == ''
     assert out == ''
 
+def test_no_differences_directories(capsys, tmpdir):
+    ret, out, err = run(capsys, str(tmpdir.mkdir('a')), str(tmpdir.mkdir('b')))
+
+    assert ret == 0
+    assert err == ''
+    assert out == ''
+
 def test_list_tools(capsys):
     ret, out, err = run(capsys, '--list-tools')
 

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


More information about the diffoscope mailing list