fix: Set status properly for Type Convert (#8599)

* Update converter.py

* [autofix.ci] apply automated fixes

*  (freeze.spec.ts): update URL in test case to use a more specific and relevant link for testing purposes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
This commit is contained in:
Edwin Jose
2025-06-17 15:16:33 -05:00
committed by GitHub
parent 35cda90121
commit 6dd5ebe33e
5 changed files with 50 additions and 44 deletions

View File

@ -118,7 +118,9 @@ class TypeConverterComponent(Component):
if isinstance(input_value, str):
input_value = Message(text=input_value)
return convert_to_message(input_value)
result = convert_to_message(input_value)
self.status = result
return result
def convert_to_data(self) -> Data:
"""Convert input to Data type."""
@ -128,7 +130,9 @@ class TypeConverterComponent(Component):
if isinstance(input_value, str):
input_value = Message(text=input_value)
return convert_to_data(input_value)
result = convert_to_data(input_value)
self.status = result
return result
def convert_to_dataframe(self) -> DataFrame:
"""Convert input to DataFrame type."""
@ -138,4 +142,6 @@ class TypeConverterComponent(Component):
if isinstance(input_value, str):
input_value = Message(text=input_value)
return convert_to_dataframe(input_value)
result = convert_to_dataframe(input_value)
self.status = result
return result

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -161,7 +161,7 @@ test(
await page
.getByTestId("inputlist_str_urls_0")
.fill("https://www.lipsum.com/");
.fill("https://www.lipsum.com/feed/html");
await runChatOutput(page);