Skip to content

Commit

Permalink
Merge branch 'feature/auto-setup-script' of github.com:sotopia-lab/so…
Browse files Browse the repository at this point in the history
…topia into feature/auto-setup-script
  • Loading branch information
ProKil committed Jun 24, 2024
2 parents 4abf589 + 66fde95 commit bd25acb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/cli/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from sotopia.cli import app
import subprocess
import time

runner = CliRunner()

Expand All @@ -13,6 +14,7 @@ def test_install() -> None:
["install", "--no-use-docker", "--load-database", "--overwrite-existing-data"],
)
assert result.exit_code == 0
time.sleep(1)

if platform.system() == "Darwin":
subprocess.run("redis-cli shutdown", shell=True, check=True)
Expand All @@ -25,6 +27,7 @@ def test_install() -> None:

result = runner.invoke(app, ["install"], input="No\nNo\n")
assert result.exit_code == 0
time.sleep(1)
if platform.system() == "Darwin":
subprocess.run("redis-cli shutdown", shell=True, check=True)
elif platform.system() == "Linux":
Expand Down

0 comments on commit bd25acb

Please sign in to comment.