From 2b0891da2197cb9905adc09584f983832725e522 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Thu, 14 Dec 2017 20:02:24 +0100 Subject: [PATCH] improve tests --- tests/test_find.py | 3 ++- tests/test_index.py | 2 +- tests/test_ls.py | 3 ++- tests/test_rm.py | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/test_find.py b/tests/test_find.py index a04df14..86d51b8 100644 --- a/tests/test_find.py +++ b/tests/test_find.py @@ -27,7 +27,8 @@ class TestFind(unittest.TestCase): noder = Noder() # create fake args - args = {'': '7544G', '--script': False} + args = {'': '7544G', '--script': True, + '--verbose': True} # try to find something found = cmd_find(args, noder, top) diff --git a/tests/test_index.py b/tests/test_index.py index aab31d3..973d0ef 100644 --- a/tests/test_index.py +++ b/tests/test_index.py @@ -48,7 +48,7 @@ class TestIndexing(unittest.TestCase): tmpdirname = 'tmpdir' args = {'': dirpath, '': tmpdirname, '--hash': True, '--meta': 'some meta', - '--subsize': True} + '--subsize': True, '--verbose': True} # index the directory cmd_index(args, noder, catalog, top) diff --git a/tests/test_ls.py b/tests/test_ls.py index 1d1f4e7..80412e3 100644 --- a/tests/test_ls.py +++ b/tests/test_ls.py @@ -25,7 +25,8 @@ class TestWalking(unittest.TestCase): noder = Noder() # create fake args - args = {'': '', '--recursive': False} + args = {'': '', '--recursive': False, + '--verbose': True} # list root args[''] = '' diff --git a/tests/test_rm.py b/tests/test_rm.py index c62c05f..cfbd674 100644 --- a/tests/test_rm.py +++ b/tests/test_rm.py @@ -25,7 +25,8 @@ class TestRm(unittest.TestCase): noder = Noder() # create fake args dict - args = {'': '', '--recursive': False} + args = {'': '', '--recursive': False, + '--verbose': True} # list files and make sure there are children args[''] = ''