fmt, fix
This commit is contained in:
@@ -268,9 +268,7 @@ async def test_content_access_uses_stateful_runtime_for_upstream_content() -> No
|
||||
|
||||
|
||||
async def test_read_resource_by_source_uri_reads_upstream() -> None:
|
||||
service = WfMcpService(
|
||||
store=FileStore(local_temp_root() / "content_source_uri")
|
||||
)
|
||||
service = WfMcpService(store=FileStore(local_temp_root() / "content_source_uri"))
|
||||
service.register_connection(
|
||||
ConnectionConfig(id="demo.personal", server="demo", account="personal")
|
||||
)
|
||||
|
||||
@@ -20,7 +20,9 @@ def _connection(**metadata: object) -> ConnectionConfig:
|
||||
)
|
||||
|
||||
|
||||
def _provider(tmp_path: Path, connection: ConnectionConfig) -> SourceDiagnosticsProvider:
|
||||
def _provider(
|
||||
tmp_path: Path, connection: ConnectionConfig
|
||||
) -> SourceDiagnosticsProvider:
|
||||
registry = ConnectionRegistry()
|
||||
registry.register(connection)
|
||||
return SourceDiagnosticsProvider(
|
||||
|
||||
@@ -100,10 +100,12 @@ def test_workflow_runtime_service_prepares_node_registry_and_reducers() -> None:
|
||||
emit_event=lambda event: None,
|
||||
)
|
||||
|
||||
workflow, registry, reducers, prepared_subgraphs, platform_context = runtime.prepare_workflow_runtime(
|
||||
single_echo_plan("runtime_prepare", "demo.personal.echo_tool"),
|
||||
deployment=None,
|
||||
artifact=None,
|
||||
workflow, registry, reducers, prepared_subgraphs, platform_context = (
|
||||
runtime.prepare_workflow_runtime(
|
||||
single_echo_plan("runtime_prepare", "demo.personal.echo_tool"),
|
||||
deployment=None,
|
||||
artifact=None,
|
||||
)
|
||||
)
|
||||
|
||||
assert "demo.personal.echo_tool" in [nd.name for nd in workflow.node_defs]
|
||||
|
||||
Reference in New Issue
Block a user