chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

add test for action

Open codomposer opened this issue 1 week ago • 0 comments
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 the Action class with 20+ test cases

Bug Fixes

  • backend/chainlit/langchain/callbacks.py - Fixed RUF059 linting error by prefixing unused parent_id variable with underscore
  • backend/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/

codomposer avatar Nov 10 '25 18:11 codomposer