fix: Standardize flow name handling with snake_case conversion in MCP API (#7242)

* support spaces

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Sebastián Estévez 2025-03-24 11:11:40 -04:00 • committed by GitHub
commit ee1b5494fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 8 deletions

View file

@ -8,7 +8,7 @@ import pytest
import respx
from httpx import Response
from langflow.components.data import APIRequestComponent
from langflow.schema import Data, DataFrame, Message
from langflow.schema import Data, DataFrame
from tests.base import ComponentTestBaseWithoutClient
@ -146,7 +146,6 @@ class TestAPIRequestComponent(ComponentTestBaseWithoutClient):
assert isinstance(result, Data)
assert result.data["source"] == url
@respx.mock
async def test_make_request_timeout(self, component):
# Test request timeout