style(server): fix ruff format violations in langgraph platform step definitions and robot helper
Applied ruff format auto-fix to resolve line-length formatting violations in: - features/steps/langgraph_platform_remote_graph_steps.py - robot/helper_langgraph_platform_integration.py These files had multi-line assert statements that ruff format collapses to single lines when they fit within the line length limit. ISSUES CLOSED: #693
This commit is contained in:
@@ -275,9 +275,7 @@ def step_register_two_graphs(
|
||||
|
||||
|
||||
@then('list_graphs should return "{graph_id_a}" and "{graph_id_b}" in sorted order')
|
||||
def step_list_graphs_sorted(
|
||||
context: Context, graph_id_a: str, graph_id_b: str
|
||||
) -> None:
|
||||
def step_list_graphs_sorted(context: Context, graph_id_a: str, graph_id_b: str) -> None:
|
||||
graphs = context.manager.list_graphs()
|
||||
expected = sorted([graph_id_a, graph_id_b])
|
||||
assert graphs == expected, f"Expected {expected!r}, got {graphs!r}"
|
||||
@@ -457,17 +455,13 @@ def step_pg_config_ssl_mode(context: Context, expected: str) -> None:
|
||||
@then('the pg config async URL should start with "{prefix}"')
|
||||
def step_pg_config_async_url(context: Context, prefix: str) -> None:
|
||||
url = context.pg_config.to_url(async_driver=True)
|
||||
assert url.startswith(prefix), (
|
||||
f"Expected URL to start with {prefix!r}, got {url!r}"
|
||||
)
|
||||
assert url.startswith(prefix), f"Expected URL to start with {prefix!r}, got {url!r}"
|
||||
|
||||
|
||||
@then('the pg config sync URL should start with "{prefix}"')
|
||||
def step_pg_config_sync_url(context: Context, prefix: str) -> None:
|
||||
url = context.pg_config.to_url(async_driver=False)
|
||||
assert url.startswith(prefix), (
|
||||
f"Expected URL to start with {prefix!r}, got {url!r}"
|
||||
)
|
||||
assert url.startswith(prefix), f"Expected URL to start with {prefix!r}, got {url!r}"
|
||||
|
||||
|
||||
@when("I try to create a PostgreSQLConnectionConfig with empty host")
|
||||
|
||||
Submodule
+1
Submodule repo added at bcf66f2708
@@ -62,17 +62,13 @@ def manager_not_configured() -> None:
|
||||
|
||||
try:
|
||||
manager.list_graphs()
|
||||
raise AssertionError(
|
||||
"Expected RemoteGraphNotAvailableError from list_graphs"
|
||||
)
|
||||
raise AssertionError("Expected RemoteGraphNotAvailableError from list_graphs")
|
||||
except RemoteGraphNotAvailableError:
|
||||
pass
|
||||
|
||||
try:
|
||||
manager.invoke("test-actor", {})
|
||||
raise AssertionError(
|
||||
"Expected RemoteGraphNotAvailableError from invoke"
|
||||
)
|
||||
raise AssertionError("Expected RemoteGraphNotAvailableError from invoke")
|
||||
except RemoteGraphNotAvailableError:
|
||||
pass
|
||||
|
||||
@@ -234,9 +230,7 @@ def postgresql_config() -> None:
|
||||
assert config.database == "cleveragents", (
|
||||
f"Expected database='cleveragents', got {config.database!r}"
|
||||
)
|
||||
assert config.username == "app", (
|
||||
f"Expected username='app', got {config.username!r}"
|
||||
)
|
||||
assert config.username == "app", f"Expected username='app', got {config.username!r}"
|
||||
assert config.port == 5432, f"Expected port=5432, got {config.port}"
|
||||
assert config.ssl_mode == "prefer", (
|
||||
f"Expected ssl_mode='prefer', got {config.ssl_mode!r}"
|
||||
@@ -251,12 +245,8 @@ def postgresql_config() -> None:
|
||||
assert async_url.startswith("postgresql+asyncpg://"), (
|
||||
f"Expected async URL to start with 'postgresql+asyncpg://', got {async_url!r}"
|
||||
)
|
||||
assert "db.example.com" in async_url, (
|
||||
f"Expected host in URL, got {async_url!r}"
|
||||
)
|
||||
assert "cleveragents" in async_url, (
|
||||
f"Expected database in URL, got {async_url!r}"
|
||||
)
|
||||
assert "db.example.com" in async_url, f"Expected host in URL, got {async_url!r}"
|
||||
assert "cleveragents" in async_url, f"Expected database in URL, got {async_url!r}"
|
||||
|
||||
# Sync URL
|
||||
sync_url = config.to_url(async_driver=False)
|
||||
|
||||
Reference in New Issue
Block a user