fix tests

pull/17/head
deadc0de6 2 years ago
parent 1b2c52fb3e
commit 47602fe32d

@ -1,5 +1,5 @@
pycodestyle; python_version >= '3.0'
pyflakes; python_version >= '3.0'
nose; python_version >= '3.0'
nose-py3; python_version >= '3.0'
coverage; python_version >= '3.0'
coveralls; python_version >= '3.0'

@ -13,8 +13,10 @@ pycodestyle tests/
pyflakes catcli/
pyflakes tests/
PYTHONPATH=catcli python3 -m nose -s --with-coverage --cover-package=catcli
#PYTHONPATH=catcli python3 -m nose -s
nosebin="nosetests"
PYTHONPATH=catcli ${nosebin} -s --with-coverage --cover-package=catcli
#PYTHONPATH=catcli ${nosebin} -s
for t in ${cur}/tests-ng/*; do
echo "running test \"`basename ${t}`\""

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

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

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

Loading…
Cancel
Save