Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 17, 2026

Summary

  • What: Replace test mock responses with exactly 5 tokens (at minimum threshold) with more substantial text
  • Why: Tests were brittle—any change to DEFAULT_MIN_TOKENS would break them

Changes

  • tests/test_orchestrate_content.py:93: Mock response increased from 5 to 15 tokens
  • tests/test_orchestrate_content.py:176: Mock response increased from 5 to 14 tokens

Both mocks now use comprehensive text matching the pattern established in line 36 of the same file.

Testing

  • All 9 tests in test_orchestrate_content.py pass

Checklist

  • Mock responses updated with sufficient token margin
  • Tests validated and passing
  • Code review completed

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: 73junito <86015877+73junito@users.noreply.github.com>
Copilot AI changed the title [WIP] WIP address feedback on flagged modules Fix brittle test mocks at minimum token threshold Jan 17, 2026
Copilot AI requested a review from 73junito January 17, 2026 21:56
Copy link
Owner

@73junito 73junito left a comment

Choose a reason for hiding this comment

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

VIEWED

@73junito 73junito marked this pull request as ready for review January 18, 2026 17:24
Copilot AI review requested due to automatic review settings January 18, 2026 17:24
@73junito 73junito merged commit 12c8aba into chore/humanize-modules Jan 18, 2026
6 of 9 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses test brittleness by updating mock responses in the orchestrate_content tests that were using text with exactly 5 tokens (the minimum threshold). By increasing these to 14-15 tokens with more comprehensive text, the tests become more resilient to potential changes in the DEFAULT_MIN_TOKENS configuration value.

Changes:

  • Updated two test mock responses to use comprehensive text with sufficient tokens (14-15 tokens vs. the previous ~5 tokens)
  • Both updates follow the established pattern from line 36 of the same test file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants