langflow/.github
Gabriel Luiz Freitas Almeida cd4464d6b1
refactor(tests): parameterize template tests and update timeout use (#9224)
* refactor: Simplify flow execution validation by removing unnecessary asyncio.wait_for calls

Updated the validate_flow_execution function to directly use the client.post and client.get methods with a timeout parameter, improving code readability and maintainability. This change eliminates redundant timeout handling while ensuring consistent timeout values across API calls.

* refactor: Enhance template tests for improved structure and validation

Refactored the template tests in `test_starter_projects.py` to utilize parameterization for better readability and maintainability. Introduced helper functions to retrieve template files and disabled tracing for all tests. Updated individual test methods to validate JSON structure, flow execution, and endpoint validation, ensuring comprehensive coverage of template functionality. This change streamlines the testing process and enhances the robustness of the test suite.

* refactor: Update project metadata and import paths in starter project JSON files

Modified the metadata section in multiple starter project JSON files to reflect updated code hashes and module paths, transitioning from 'lfx' to 'langflow' components. This change enhances consistency across the codebase and ensures that the correct modules are referenced for improved maintainability and clarity.

* chore: Update template test commands to utilize parallel execution

Modified the commands in the Makefile and CI workflows to include the `-n auto` option for pytest, enabling parallel test execution for the starter project template tests. This change enhances test performance and efficiency across the codebase.

* chore: Remove  news-aggregated.json file

Deleted the news-aggregated.json file

* Update test_template_validation.py

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-29 22:32:48 +00:00
..
actions/install-playwright chore(ci): replace local uv setup action with astral-sh/setup-uv@v6 (#8491) 2025-06-11 18:56:04 +00:00
ISSUE_TEMPLATE chore: Remove mention of anovazzi1 from bug report template (#7265) 2025-03-25 20:53:18 +00:00
workflows refactor(tests): parameterize template tests and update timeout use (#9224) 2025-07-29 22:32:48 +00:00
changes-filter.yaml fix: add data-testid to new project button in EmptyFolder component (#9222) 2025-07-29 08:56:14 -03:00
dependabot.yml ci: add lint commit workflow for pull requests (#2463) 2024-07-01 14:33:49 -07:00
release.yml feat(PR): add conditions to label pr (#2532) 2024-07-04 08:11:37 -07:00
semantic.yml chore: update targetUrl in semantic.yml (#2480) 2024-07-02 12:13:39 -07:00