Skip to content

[Tests] Add unit tests for api/tools/tools.py — currently zero test coverage #298

@124padmini

Description

@124padmini

Problem

chatbot-core/api/tools/tools.py contains 4 functions with zero unit tests. Every other file in api/tools/ has tests except this one.

Untested Functions

  • search_plugin_docs() — hybrid search for plugin docs
  • search_jenkins_docs() — hybrid search for Jenkins docs
  • search_stackoverflow_threads() — stub returning static response
  • search_community_threads() — hybrid search with semantic weight

Proposed Solution

Add tests/unit/tools/test_tools.py covering the above behaviors using unittest.mock.patch.

Are you interested in contributing a fix?

Yes — I will submit a PR once this approach is approved.
@berviantoleo @cnu1812 Does this look good to proceed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsThis PR adds/removes/updates test cases
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions