Update test_component_code path in conftest.py
This commit is contained in:
parent
96ce544582
commit
491c03e5b6
2 changed files with 1 additions and 1 deletions
|
|
@ -1,16 +0,0 @@
|
|||
import random
|
||||
|
||||
from langflow import CustomComponent
|
||||
|
||||
|
||||
class TestComponent(CustomComponent):
|
||||
def refresh_values(self):
|
||||
# This is a function that will be called every time the component is updated
|
||||
# and should return a list of random strings
|
||||
return [f"Random {random.randint(1, 100)}" for _ in range(5)]
|
||||
|
||||
def build_config(self):
|
||||
return {"param": {"display_name": "Param", "options": self.refresh_values}}
|
||||
|
||||
def build(self, param: int):
|
||||
return param
|
||||
Loading…
Add table
Add a link
Reference in a new issue