diff --git a/tests/cli/test_install.py b/tests/cli/test_install.py index 1d55d9d94..58841ecb0 100644 --- a/tests/cli/test_install.py +++ b/tests/cli/test_install.py @@ -9,28 +9,41 @@ def test_install() -> None: - result = runner.invoke( - app, - ["install", "--no-use-docker", "--load-database", "--overwrite-existing-data"], - ) - assert result.exit_code == 0 - time.sleep(1) - if platform.system() == "Darwin": + result = runner.invoke( + app, + ["install", "--no-use-docker", "--overwrite-existing-data"], + ) + assert result.exit_code == 0 + time.sleep(1) subprocess.run("redis-cli shutdown", shell=True, check=True) elif platform.system() == "Linux": + result = runner.invoke( + app, + [ + "install", + "--no-use-docker", + "--load-database", + "--overwrite-existing-data", + ], + ) + assert result.exit_code == 0 + time.sleep(1) subprocess.run( "./redis-stack-server-7.2.0-v10/bin/redis-cli shutdown", shell=True, check=True, ) - result = runner.invoke(app, ["install"], input="No\nNo\n") - assert result.exit_code == 0 - time.sleep(1) if platform.system() == "Darwin": + result = runner.invoke(app, ["install"], input="Yes\nNo\n\n") + assert result.exit_code == 0 + time.sleep(1) subprocess.run("redis-cli shutdown", shell=True, check=True) elif platform.system() == "Linux": + result = runner.invoke(app, ["install"], input="No\nNo\n") + assert result.exit_code == 0 + time.sleep(1) subprocess.run( "./redis-stack-server-7.2.0-v10/bin/redis-cli shutdown", shell=True,