improve tests

pull/6/head
deadc0de6 7 years ago
parent c19a474ac7
commit 2b0891da21

@ -27,7 +27,8 @@ class TestFind(unittest.TestCase):
noder = Noder()
# create fake args
args = {'<term>': '7544G', '--script': False}
args = {'<term>': '7544G', '--script': True,
'--verbose': True}
# try to find something
found = cmd_find(args, noder, top)

@ -48,7 +48,7 @@ class TestIndexing(unittest.TestCase):
tmpdirname = 'tmpdir'
args = {'<path>': dirpath, '<name>': tmpdirname,
'--hash': True, '--meta': 'some meta',
'--subsize': True}
'--subsize': True, '--verbose': True}
# index the directory
cmd_index(args, noder, catalog, top)

@ -25,7 +25,8 @@ class TestWalking(unittest.TestCase):
noder = Noder()
# create fake args
args = {'<path>': '', '--recursive': False}
args = {'<path>': '', '--recursive': False,
'--verbose': True}
# list root
args['<path>'] = ''

@ -25,7 +25,8 @@ class TestRm(unittest.TestCase):
noder = Noder()
# create fake args dict
args = {'<path>': '', '--recursive': False}
args = {'<path>': '', '--recursive': False,
'--verbose': True}
# list files and make sure there are children
args['<path>'] = ''

Loading…
Cancel
Save