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()