Skip to content
Snippets Groups Projects
Commit 7c6ce4a8 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

A few more checks in immv/imcp scripts

parent eccc9b28
No related branches found
No related tags found
No related merge requests found
......@@ -335,8 +335,8 @@ def test_imcp_script_shouldPass(move=False):
print('indir before: ', os.listdir(indir))
print('outdir before: ', os.listdir(outdir))
if move: immv_script.main(imcp_args)
else: imcp_script.main(imcp_args)
if move: assert immv_script.main(imcp_args) == 0
else: assert imcp_script.main(imcp_args) == 0
print('indir after: ', os.listdir(indir))
print('outdir after: ', os.listdir(outdir))
......@@ -358,7 +358,6 @@ def test_imcp_script_shouldPass(move=False):
shutil.rmtree(outdir)
def test_imcp_script_shouldFail(move=False):
# - len(srcs) > 1 and dest is not dir
......@@ -453,6 +452,15 @@ def test_imcp_script_shouldFail(move=False):
shutil.rmtree(indir)
shutil.rmtree(outdir)
# Other failure cases
if move: assert immv_script.main() != 0
else: assert imcp_script.main() != 0
if move: assert immv_script.main([]) != 0
else: assert imcp_script.main([]) != 0
if move: assert immv_script.main(['wa']) != 0
else: assert imcp_script.main(['wa']) != 0
def test_immv_script_shouldPass():
test_imcp_script_shouldPass(move=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment