Skip to content

Commit 3626eff

Browse files
committed
Ensure command executable does exists
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 07f9dd0 commit 3626eff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_extractcode_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def run_extract(options, expected_rc=None, cwd=None):
4545
"""
4646
bin_dir = 'Scripts' if on_windows else 'bin'
4747
cmd_loc = os.path.join(project_root, 'tmp', bin_dir, 'extractcode')
48+
assert os.path.exists(cmd_loc)
4849
args = [cmd_loc] + options
4950
result = subprocess.run(args,
5051
stderr=subprocess.PIPE,

0 commit comments

Comments
 (0)