langflow/tests
gustavoschaedler 11f7846e0a 🔥 refactor(conftest.py): remove unused fixtures and custom chain classes
The following changes were made:
- Removed the `custom_chain` fixture and the `MyCustomChain` and `CustomChain` classes as they were not being used.
- Removed the `data_processing`, `filter_docs`, `get_request`, and `post_request` fixtures as they were not being used.

🔧 fix(test_agents_template.py): set "dynamic" property to False for all template variables to ensure consistency and improve clarity

🐛 fix(test_chains_template.py): add missing "dynamic" field to template dictionaries to ensure consistency and avoid potential bugs

🔧 fix(test_custom_component.py): fix import statements and remove unused imports to improve code readability and maintainability
 feat(test_custom_component.py): add tests for the initialization of the CodeParser, Component, and CustomComponent classes
🔧 fix(test_custom_component.py): fix test names and add missing test cases for the Component and CustomComponent classes

🔨 refactor: refactor server.ts to use uppercase PORT variable for improved semantics
 feat: add support for process.env.PORT environment variable to run app on configurable port

🔨 refactor: refactor CustomComponent tests for improved readability and maintainability

🔨 refactor: refactor CodeParser tests for improved readability and maintainability

🔨 refactor: refactor Component tests for improved readability and maintainability

🐛 fix: fix CustomComponent class template validation to raise HTTPException when code is None

🔧 fix(tests): fix syntax error in custom_component._class_template_validation
 feat(tests): add test_custom_component_get_code_tree_syntax_error to test CustomComponent.get_code_tree method for raising CodeSyntaxError when given incorrect syntax
 feat(tests): add test_custom_component_get_function_entrypoint_args_no_args to test CustomComponent.get_function_entrypoint_args property with a build method with no arguments
 feat(tests): add test_custom_component_get_function_entrypoint_return_type_no_return_type to test CustomComponent.get_function_entrypoint_return_type property with a build method with no return type
 feat(tests): add test_custom_component_get_main_class_name_no_main_class to test CustomComponent.get_main_class_name property when there is no main class
 feat(tests): add test_custom_component_build_not_implemented to test CustomComponent.build method for raising NotImplementedError
 feat(tests): add fixtures for custom_chain, data_processing, filter_docs, and get_request

🔧 fix(tests): remove commented out code and unused imports to improve code readability and maintainability

🐛 fix(test_llms_template.py): set "dynamic" property to False for all template properties to ensure static values are used

🐛 fix(test_prompts_template.py): set "dynamic" property to False for all template properties to ensure consistency and improve readability
2023-07-18 01:59:19 +01:00
..
data fix: replace old complex_example to fix tests 2023-07-01 09:52:45 -03:00
conftest.py 🔥 refactor(conftest.py): remove unused fixtures and custom chain classes 2023-07-18 01:59:19 +01:00
test_agents_template.py 🔥 refactor(conftest.py): remove unused fixtures and custom chain classes 2023-07-18 01:59:19 +01:00
test_cache.py 🐛 fix(process.py): caching objects does not depend on is_first_message anymore 2023-06-17 13:34:35 -03:00
test_cache_manager.py refactor(langflow): reorder imports in multiple files 2023-05-02 23:23:36 +00:00
test_chains_template.py 🔥 refactor(conftest.py): remove unused fixtures and custom chain classes 2023-07-18 01:59:19 +01:00
test_creators.py 🔥 refactor(conftest.py): remove unused fixtures and custom chain classes 2023-07-18 01:59:19 +01:00
test_custom_component.py 🔥 refactor(conftest.py): remove unused fixtures and custom chain classes 2023-07-18 01:59:19 +01:00
test_custom_types.py 🚀 feat(customs.py): add PythonFunction to CUSTOM_NODES 2023-06-06 11:40:39 -03:00
test_database.py 🔥 chore(test_database.py): remove unused test_stress_create_flow function 2023-06-16 19:12:45 -03:00
test_embeddings_template.py 🔨 refactor(embeddings.py): move openai fields formatting to a separate method 2023-05-28 16:18:33 -03:00
test_endpoints.py 🔧 fix(test_endpoints.py): fix import statement for TimeTravelGuideChainNode 2023-07-07 18:25:57 -03:00
test_frontend_nodes.py 🔥 refactor(base.py): remove unused import statement 2023-05-30 23:48:49 -03:00
test_graph.py 🔥 refactor(test_graph.py): remove unused imports and test cases related to specific vertex types 2023-07-07 18:26:00 -03:00
test_llms_template.py 🔥 refactor(conftest.py): remove unused fixtures and custom chain classes 2023-07-18 01:59:19 +01:00
test_loading.py 🔀 refactor(process.py): change load_flow_from_json function signature to accept either a JSON file path or a JSON object 2023-06-19 11:36:43 -03:00
test_process.py 🧪 test(process.py): add tests for process_tweaks function 2023-06-14 07:21:49 -03:00
test_prompts_template.py 🔥 refactor(conftest.py): remove unused fixtures and custom chain classes 2023-07-18 01:59:19 +01:00
test_template.py test(test_template.py): add assertion to check if result is not None 2023-06-23 10:53:53 -03:00
test_validate_code.py formatting 2023-03-31 14:06:40 -03:00
test_vectorstore_template.py update endpoint 2023-06-06 10:06:51 -03:00
test_websocket.py 🔧 chore(test_websocket.py): remove unnecessary commented out code and update websocket test input 2023-06-30 17:16:41 -03:00