Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_find_interpreter_false(self):
with mocked_sys_prefix():
interpreter = _interpreter_path()
# should fall back on the current sys.executable
assert interpreter == sys.executable
def test_find_interpreter(self):
interpreter = _interpreter_path()
assert Path(interpreter).exists()
assert Path(interpreter).is_file()