Skip to content

Add unit tests for decompose_query in decomposer.py#343

Open
Dharshin1 wants to merge 2 commits into
viru0909-dev:mainfrom
Dharshin1:add-decomposer-unit-tests
Open

Add unit tests for decompose_query in decomposer.py#343
Dharshin1 wants to merge 2 commits into
viru0909-dev:mainfrom
Dharshin1:add-decomposer-unit-tests

Conversation

@Dharshin1
Copy link
Copy Markdown

Description

Added unit tests for the decompose_query() function in decomposer.py.

The tests cover:

  • Returning a list of strings
  • Ensuring a maximum of 5 sub-questions
  • Graceful fallback on JSON parsing failure
  • Graceful fallback on API failure

All tests are passing locally.

Closes #285

Type of change

  • Tests

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective
  • New and existing unit tests pass locally with my changes

@Dharshin1 Dharshin1 requested a review from viru0909-dev as a code owner May 15, 2026 18:04
@vercel
Copy link
Copy Markdown

vercel Bot commented May 15, 2026

@Dharshin1 is attempting to deploy a commit to the CodeBlooded's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nyaysetu Ready Ready Preview, Comment May 15, 2026 11:25pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Unit Tests for decomposer.py

1 participant