chainlit
chainlit copied to clipboard
add test for action
trafficstars
Add Comprehensive Test Coverage for Action Class
Summary
This PR adds comprehensive unit tests for the Action class in the Chainlit backend, improving test coverage for core functionality.
Changes
New Test File
backend/tests/test_action.py- Complete test suite for theActionclass with 20+ test cases
Bug Fixes
backend/chainlit/langchain/callbacks.py- Fixed RUF059 linting error by prefixing unusedparent_idvariable with underscorebackend/tests/data/storage_clients/test_gcs.py- Fixed RUF043 linting error by using raw string and escaping regex metacharacter
Contribution by Gittensor, learn more at https://gittensor.io/