Skip to content

test(ai_agent): add unit tests for transfers, proposals, search + CI/audit workflow - #244

Merged
codebestia merged 1 commit into
codebestia:mainfrom
theladyanina:fix/clicked-theladyanina-batch
Jun 28, 2026
Merged

test(ai_agent): add unit tests for transfers, proposals, search + CI/audit workflow#244
codebestia merged 1 commit into
codebestia:mainfrom
theladyanina:fix/clicked-theladyanina-batch

Conversation

@theladyanina

Copy link
Copy Markdown
Contributor

Summary

  • Adds rule-based unit tests for POST /transfers/analyse — including the mandatory mock_openai.assert_not_called() assertion on the high-value path
  • Adds 10 unit tests for POST /proposals/summarise covering all risk levels, empty-summary 502, invalid-risk fallback, and missing-field 422s
  • Adds 7 unit tests for GET /search covering Weaviate connection failure, empty-collection early-return, result shape, filter verification, and close() on success
  • Adds .github/workflows/ai_agent.yml with test + audit jobs triggered on PRs touching apps/ai_agent/** and a weekly Tuesday 09:00 UTC schedule
  • Adds pip-audit>=2.7 to dev dependencies

Closes

closes #145
closes #147
closes #149
closes #152

…earch; add CI + audit workflow

Implements:
- closes codebestia#145 (rule-based transfers: 4 tests including mandatory mock_openai.assert_not_called)
- closes codebestia#147 (proposals/summarise: 10 tests including all 3 risk levels, 502 on empty summary, fallbacks)
- closes codebestia#149 (search: 7 tests including 503 on connection fail, empty-collection early-return, close() on success)
- closes codebestia#152 (CI workflow: test + pip-audit jobs; weekly Tuesday 09:00 UTC schedule; pip-audit>=2.7 in dev deps)
@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@theladyanina Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@codebestia codebestia left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Thank you for your contribution

@codebestia
codebestia merged commit b4e5180 into codebestia:main Jun 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants