langflow/src/backend/tests/unit
Cristhian Zanforlin Lousa db2c12183c
fix: Union type on components (#4137)
* 🐛 (type_extraction.py): fix condition to correctly handle UnionType objects in type extraction process

*  (test_schema.py): add support for additional data types and nested structures in post_process_type function to improve type handling and flexibility

*  (test_schema.py): add additional test cases for post_process_type function to cover various Union types and combinations for better test coverage and accuracy
2024-10-14 21:02:15 +00:00
..
api tests: update tests to use httpx.AsyncClient (#3984) 2024-10-02 10:21:52 -07:00
base ref: Add ruff rules for boolean trap (FBT) (#4126) 2024-10-14 16:41:16 +00:00
components feat(YahooFinanceTool): enhance tool with new inputs for data retrieval methods (#3738) 2024-10-03 08:33:28 -07:00
custom refactor: enhance tool creation logic and add FeatureFlags (#3662) 2024-10-01 20:58:51 +00:00
events feat: add EventManager to centralize callbacks (#3434) 2024-09-02 15:41:19 +02:00
exceptions feat: Add suggestion message to API exception response (#3149) 2024-08-07 15:26:24 +00:00
graph ref: Add ruff rules for boolean trap (FBT) (#4126) 2024-10-14 16:41:16 +00:00
initial_setup/starter_projects chore: refactor and add components integration tests (#3607) 2024-09-02 15:21:47 +02:00
inputs refactor: enhance tool creation logic and add FeatureFlags (#3662) 2024-10-01 20:58:51 +00:00
io feat: Add default value support for table columns (#4043) 2024-10-09 17:10:40 +00:00
schema fix: update message reload and update langchain-core (#3054) 2024-07-30 13:54:51 +00:00
services/variable fix: update variable fields (#4022) 2024-10-04 16:49:36 -03:00
utils fix: escape directory to prevent \n on Windows directory name to fail on Pathlib + Tests (#4101) 2024-10-14 16:54:05 +00:00
__init__.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_api_key.py tests: update tests to use httpx.AsyncClient (#3984) 2024-10-02 10:21:52 -07:00
test_chat_endpoint.py tests: update tests to use httpx.AsyncClient (#3984) 2024-10-02 10:21:52 -07:00
test_cli.py tests: update env.py and conftest so tests use unique databases (#3654) 2024-10-10 11:45:11 +00:00
test_custom_component.py tests: update env.py and conftest so tests use unique databases (#3654) 2024-10-10 11:45:11 +00:00
test_custom_component_with_client.py tests: update env.py and conftest so tests use unique databases (#3654) 2024-10-10 11:45:11 +00:00
test_data_class.py refactor: add fixtures for client in test files to speed them up (#3490) 2024-08-22 12:08:47 -07:00
test_data_components.py ref: Add ruff rules for boolean trap (FBT) (#4126) 2024-10-14 16:41:16 +00:00
test_database.py refactor: add pagination on folders (#4020) 2024-10-11 21:49:20 +00:00
test_endpoints.py refactor: deactivate caching if a component is part of a cycle (#3694) 2024-10-02 18:05:20 +00:00
test_experimental_components.py fix: pythonfunction component execution (#3747) 2024-09-10 19:17:55 +00:00
test_files.py tests: update tests to use httpx.AsyncClient (#3984) 2024-10-02 10:21:52 -07:00
test_frontend_nodes.py fix: textarea with password visual bug (#3739) 2024-09-10 19:20:50 +00:00
test_helper_components.py fix: url component output types and id generator component (#3740) 2024-09-10 12:33:08 +00:00
test_initial_setup.py refactor: starter projects templates and components (#4121) 2024-10-14 14:05:45 +00:00
test_kubernetes_secrets.py refactor: change typing annotations in tests folder (#3594) 2024-08-28 19:45:19 +00:00
test_loading.py refactor: deactivate caching if a component is part of a cycle (#3694) 2024-10-02 18:05:20 +00:00
test_logger.py refactor: add fixtures for client in test files to speed them up (#3490) 2024-08-22 12:08:47 -07:00
test_login.py tests: update tests to use httpx.AsyncClient (#3984) 2024-10-02 10:21:52 -07:00
test_messages.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_messages_endpoints.py tests: update tests to use httpx.AsyncClient (#3984) 2024-10-02 10:21:52 -07:00
test_process.py refactor: deactivate caching if a component is part of a cycle (#3694) 2024-10-02 18:05:20 +00:00
test_schema.py fix: Union type on components (#4137) 2024-10-14 21:02:15 +00:00
test_setup_superuser.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_telemetry.py ref: Use TypeError instead of ValueError when relevant (TRY004) (#4045) 2024-10-08 19:10:57 +00:00
test_template.py refactor: change typing annotations in tests folder (#3594) 2024-08-28 19:45:19 +00:00
test_user.py tests: update env.py and conftest so tests use unique databases (#3654) 2024-10-10 11:45:11 +00:00
test_validate_code.py refactor: add fixtures for client in test files to speed them up (#3490) 2024-08-22 12:08:47 -07:00
test_version.py feat: expose main_version on /version endpoint (#2944) 2024-07-26 13:56:18 +02:00
test_webhook.py tests: update tests to use httpx.AsyncClient (#3984) 2024-10-02 10:21:52 -07:00