Commit 7c6ce4a8 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

A few more checks in immv/imcp scripts

parent eccc9b28
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment