langflow/tests
Gabriel Luiz Freitas Almeida 4ebfd59b1b
chore: remove unused files and update imports (#1967)
* chore(pyproject.toml): update vulture dependency to version 2.11

* chore: Remove unused files and imports

* Refactor legacy_custom/customs.py by removing unused nodes and chains

* Refactor langflow.interface.custom.base.py by removing unused code

* Refactor test_custom_component.py to import CustomComponent from langflow.custom

* refactor(agents): remove AgentInitializer and OpenAIConversationalAgent components as they are no longer needed
refactor(embeddings): remove client parameter from OpenAIEmbeddingsComponent as it is not used
refactor(memories): change search_scope and search_type parameters in ZepMessageReaderComponent to be of type str
refactor(model_specs): remove examples parameter from ChatVertexAIComponent as it is not used
refactor(models): change metadata parameter type in OllamaModel to Dict for consistency

refactor(VertexAiModel.py): remove examples parameter from ChatVertexAIComponent constructor to simplify the class structure
refactor(MultiQueryRetriever.py): change prompt parameter type to Text for better consistency and readability
refactor(JsonToolkit.py): update build method to handle both json and yaml file types for JsonToolkit creation
refactor(OpenAPIToolkit.py): update build method to handle both json and yaml file types for JsonSpec creation and improve parameter naming for clarity

* Format json

* refactor(langflow.custom): update imports in code files to use the new langflow.custom module

* chore(settings.py): remove unused settings file and related imports and classes from the project.

* refactor(langflow): optimize imports in graph/__init__.py and graph/graph/base.py
refactor(langflow): remove unused code and simplify logic in vertex/base.py

refactor(types.py): remove unused imports and classes, clean up commented out code, and improve code readability by removing unnecessary methods and attributes

refactor(utils.py): remove unused functions is_basic_type, invoke_lc_runnable, generate_result
feat(load): add new functionality to load flow from JSON file or object and run flow from JSON file or object
feat(load): add new modules load.py and __init__.py for loading and running flow from JSON
feat(processing): remove unused functions get_result_and_steps, flush_langfuse_callback_if_present

refactor(process.py): remove unused functions and imports to clean up the codebase
feat(utils.py): remove unused file utils.py to declutter the project and improve maintainability
test(test_loading.py): update import paths after restructuring the project folders
2024-05-24 13:13:38 -07:00
..
data 1.0 Alpha (#1599) 2024-04-04 02:46:44 -03:00
locust Reapply "Refactor state management to use Zustand, migrate components to CustomComponent and other fixes" 2024-02-05 19:02:34 -03:00
__init__.py feat(tests): add __init__.py and utils.py files to tests directory for test setup and utility functions 2023-09-05 12:24:43 -03:00
conftest.py Fix lint and tests (#1959) 2024-05-23 07:55:06 -07:00
test_api_key.py Update datetime handling in ApiKey and Variable models (#1673) 2024-04-10 23:04:10 -03:00
test_cache.py 1.0 Alpha (#1599) 2024-04-04 02:46:44 -03:00
test_cli.py 1.0 Alpha (#1599) 2024-04-04 02:46:44 -03:00
test_custom_component.py chore: remove unused files and update imports (#1967) 2024-05-24 13:13:38 -07:00
test_data_components.py Fix various issues and refactor code (#1647) 2024-04-09 01:02:56 -03:00
test_database.py 1.0 Alpha (#1599) 2024-04-04 02:46:44 -03:00
test_endpoints.py chore: remove unused files and update imports (#1967) 2024-05-24 13:13:38 -07:00
test_files.py 1.0 Alpha (#1599) 2024-04-04 02:46:44 -03:00
test_frontend_nodes.py Refactor imports and update function names 2024-01-25 16:17:40 -03:00
test_graph.py Format code and update langflow version (#1922) 2024-05-19 19:17:18 -07:00
test_helper_components.py chore: remove unused files and update imports (#1967) 2024-05-24 13:13:38 -07:00
test_initial_setup.py Fix lint and tests (#1959) 2024-05-23 07:55:06 -07:00
test_loading.py chore: remove unused files and update imports (#1967) 2024-05-24 13:13:38 -07:00
test_login.py Update datetime handling in ApiKey and Variable models (#1673) 2024-04-10 23:04:10 -03:00
test_process.py Fix various issues and refactor code (#1671) 2024-04-10 22:40:21 -03:00
test_record.py 1.0 Alpha (#1599) 2024-04-04 02:46:44 -03:00
test_setup_superuser.py 1.0 Alpha (#1599) 2024-04-04 02:46:44 -03:00
test_template.py Changes default location for the database and adds the option to use the previous behavior (#1907) 2024-05-15 20:41:01 -03:00
test_user.py 1.0 Alpha (#1599) 2024-04-04 02:46:44 -03:00
test_validate_code.py formatting 2023-03-31 14:06:40 -03:00
text_experimental_components.py 1.0 Alpha (#1599) 2024-04-04 02:46:44 -03:00
utils.py 🐛 fix(basic_example.json): change value of "value" key from "abc" to null to remove hardcoded value and improve flexibility 2023-09-22 11:06:25 -03:00