langflow/src/backend/tests/unit
Gabriel Luiz Freitas Almeida 77cc789e62
refactor: separate initialization of nodes and edges in test_graph.py (#2828)
* refactor: move test_graph.py

* refactor: allow Graph to be initialized with no nodes and edges

The Graph class in `base.py` was refactored to separate the initialization of nodes and edges into a separate method called `add_nodes_and_edges()`. This improves code readability and maintainability by organizing the code logic more effectively.

* refactor: separate initialization of nodes and edges in get_graph()

The `get_graph()` function in `conftest.py` was refactored to separate the initialization of nodes and edges. This improves code readability and maintainability by organizing the code logic more effectively.

* refactor: separate initialization of nodes and edges in test_graph.py

* refactor: separate initialization of nodes and edges in base.py

The `add_node()` and `add_edge()` methods were added to the `Graph` class in `base.py` to separate the initialization of nodes and edges. This improves code readability and maintainability by organizing the code logic more effectively.
2024-07-22 16:48:29 -03:00
..
graph refactor: separate initialization of nodes and edges in test_graph.py (#2828) 2024-07-22 16:48:29 -03: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 refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_cache.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_cli.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_custom_component.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_data_class.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_data_components.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_database.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_files.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_frontend_nodes.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_helper_components.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_initial_setup.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_kubernetes_secrets.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_loading.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_logger.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_login.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_messages.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_process.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +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 refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_template.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
test_validate_code.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00
text_experimental_components.py refactor: move tests folder structure and update pytest commands (#2785) 2024-07-18 15:19:43 +00:00