Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix(SKY-11965): report valid PostgreSQL start command in skyvern status (#7161)
Marc Kelechavaee0964b43a1c
diff --git a/skyvern/cli/status.py b/skyvern/cli/status.pyindex a7308fefb..a63b521c6 100644--- a/skyvern/cli/status.py+++ b/skyvern/cli/status.py@@ -30,7 +30,7 @@ def _status_data() -> list[dict]:{"component": "PostgreSQL","running": _check_port(db_port),- "start_command": "skyvern init --no-postgres false",+ "start_command": "skyvern init",},]diff --git a/tests/unit/test_cli_commands.py b/tests/unit/test_cli_commands.pyindex 3334621c6..4a5e39d71 100644--- a/tests/unit/test_cli_commands.py+++ b/tests/unit/test_cli_commands.py@@ -3,6 +3,7 @@from __future__ import annotationsimport json+import shlexfrom datetime import datetime, timezonefrom pathlib import Pathfrom types import SimpleNamespace@@ -10,8 +11,11 @@ from unittest.mock import AsyncMock, MagicMockimport pytestimport typer+from typer.testing import CliRunner+from skyvern.cli.commands import cli_appfrom skyvern.cli.commands._state import CLIState, clear_state, load_state, save_state+from skyvern.cli.status import _status_data# ---------------------------------------------------------------------------# _state.py@@ -98,6 +102,24 @@ class TestOutput:assert parsed["error"]["message"] == "bad thing"+# ---------------------------------------------------------------------------+# status.py+# ---------------------------------------------------------------------------+++class TestStatusCommands:+ def test_status_start_commands_are_accepted_by_cli_parser(self) -> None:+ runner = CliRunner()++ for row in _status_data():+ command_parts = shlex.split(row["start_command"])+ assert command_parts[0] == "skyvern"++ result = runner.invoke(cli_app, [*command_parts[1:], "--help"])++ assert result.exit_code == 0, result.output++# ---------------------------------------------------------------------------# Connection resolution# ---------------------------------------------------------------------------