langflow/tests
Gabriel Luiz Freitas Almeida 03329b232e
fix: make webhook api call honor webhook component as input (#2511)
* refactor(base.py): refactor logic to find start_component_id based on multiple keywords for improved flexibility and readability

* feat(schema.py): add WebhookInput component type to INPUT_COMPONENTS list for handling webhook inputs in the graph schema

* refactor(base.py): refactor logic to determine start_component_id based on webhook or chat component presence in input vertices

* refactor: prioritize webhook component for determining start_component_id

* feat(utils.py): add function find_start_component_id to find component ID based on priority list of input types

* refactor(graph/base.py): refactor logic to find start component id in Graph class for better readability and maintainability

* test(test_webhook.py): override pytest fixture to check for OpenAI API key in environment variables before running tests

* test(test_webhook.py): update webhook json

* feat(schema.py): update WebhookInput component type name

* refactor: log package run telemetry in simplified_run_flow

* test: add test for webhook flow on run endpoint

* refactor(graph/base.py): skip unbuilt vertices when getting vertex outputs in Graph class

* refactor: simplify data_input assignment in LCTextSplitterComponent

* refactor: remove unused build method in CharacterTextSplitterComponent

* refactor: update imports in CharacterTextSplitter.py
2024-07-04 11:11:55 -07:00
..
data fix: make webhook api call honor webhook component as input (#2511) 2024-07-04 11:11:55 -07:00
integration refactor: move langflow api tests into integration tests (#2469) 2024-07-01 15:25:56 -07:00
locust Reapply "Refactor state management to use Zustand, migrate components to CustomComponent and other fixes" 2024-02-05 19:02:34 -03:00
unit refactor: move langflow api tests into integration tests (#2469) 2024-07-01 15:25:56 -07:00
conftest.py fix path to data folder 2024-06-20 19:08:40 -03:00
test_endpoints.py ci: skip tests with openai key required (#2477) 2024-07-02 06:20:13 -07:00
test_messages_endpoints.py refactor: Update add_messages and add_messagetables functions to return Message objects 2024-07-01 13:53:37 -03:00
test_schema.py refactor: Update langflow components and constants 2024-06-13 10:40:39 -03:00
test_user.py Fixes CLI and server (#2342) 2024-06-25 09:20:55 -07:00
test_webhook.py fix: make webhook api call honor webhook component as input (#2511) 2024-07-04 11:11:55 -07:00