fix tests

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

@ -1,5 +1,5 @@
pycodestyle; python_version >= '3.0' pycodestyle; python_version >= '3.0'
pyflakes; 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' coverage; python_version >= '3.0'
coveralls; python_version >= '3.0' coveralls; python_version >= '3.0'

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

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

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

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

Loading…
Cancel
Save