test_args = ['chewBBACA.py', 'AlleleCall', '-i', 'data/prep_data/empty_dir']
def test_invalid_input(test_args, expected):
# create empty dir for empty dir test
if 'empty_dir' in test_args[3] and os.path.isdir(test_args[3]) is False:
os.mkdir(test_args[3])
with pytest.raises(SystemExit) as e:
with patch.object(sys, 'argv', test_args):
chewBBACA.main()
assert e.type == SystemExit
assert e.value.code != 0