Fix code checks

This commit is contained in:
Tymoteusz Jankowski
2019-12-01 19:48:56 +01:00
parent a6a3cbcffa
commit f79711d155
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -423,5 +423,5 @@ def resolve_output(inp, out):
def is_exec_found(exec_name):
cmd = '({}) 2>/dev/null'.format(exec_name)
return hasattr(os, 'system') and os.system(cmd) == 0
cmd = "({}) 2>/dev/null".format(exec_name)
return hasattr(os, "system") and os.system(cmd) == 0
+2 -2
View File
@@ -92,9 +92,9 @@ def test_makedirs_permissions(tmpdir):
def test_is_exec_found_returns_true_when_program_exists():
result = utils.is_exec_found("python")
assert result == True
assert result is True
def test_is_exec_found_returns_false_when_program_is_missing():
result = utils.is_exec_found("some-missing-program")
assert result == False
assert result is False