langflow/src/backend/tests/unit/inputs
Cristhian Zanforlin Lousa c39bb39772
fix: pass slider input values correctly, add test (#5735)
*  (base.py): Update field validation to include "slider" type in addition to "float" type for better parameter handling
📝 (constants.py): Add "slider" type to the list of DIRECT_TYPES for consistency and completeness

*  (test_inputs.py): add unit test for SliderInput class to ensure it initializes with correct value

* 🐛 (base.py): fix comparison of field type with a list by changing it to a set to ensure correct condition evaluation

* [autofix.ci] apply automated fixes

* fix format

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-16 18:41:17 +00:00
..
__init__.py ref: Add missing __init__.py files in tests (#4180) 2024-10-17 18:21:56 +00:00
test_inputs.py fix: pass slider input values correctly, add test (#5735) 2025-01-16 18:41:17 +00:00