Skip to content

test: add utils unit tests and fix docs typo#1518

Open
RobinALG87 wants to merge 1 commit into
simonw:mainfrom
RobinALG87:contrib/llm/utils-tests
Open

test: add utils unit tests and fix docs typo#1518
RobinALG87 wants to merge 1 commit into
simonw:mainfrom
RobinALG87:contrib/llm/utils-tests

Conversation

@RobinALG87

@RobinALG87 RobinALG87 commented Jul 8, 2026

Copy link
Copy Markdown

Summary

Adds unit test coverage for previously untested llm.utils helpers and fixes a docs typo.

Changes

  • Add tests for schema_summary, has_plugin_prefix, find_unused_key, and related utilities.
  • Fix the duplicated key wording in docs/index.md and README.md.
  • Format the added tests with the repository's Black configuration.

Validation

  • python -m black --check --fast tests/test_utils.py
  • python -m pytest tests/test_utils.py -q (115 passed)

Notes

Kept intentionally focused and aligned with existing project patterns.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bbdd6cf51e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/test_utils.py Outdated
- Add unit tests for schema_summary, has_plugin_prefix, find_unused_key,
  remove_dict_none_values, token_usage_string, make_schema_id,
  dicts_to_table_string, and output_rows_as_json
- Fix duplicate 'key' in OpenAI API key quick start sentence
@RobinALG87 RobinALG87 force-pushed the contrib/llm/utils-tests branch from bbdd6cf to d9c7bc5 Compare July 9, 2026 20:15
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.

1 participant