Skip to content

test(contract): expect generated double-identifier wording on models get - #43

Merged
2ynn merged 1 commit into
mainfrom
fix/tests/models-double-identifier-wording
Sep 28, 2026
Merged

2ynn merged 1 commit into
mainfrom
fix/tests/models-double-identifier-wording

Conversation

@2ynn

@2ynn 2ynn commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

go test ./... fails on main since 1fa466c:

--- FAIL: TestModelsGetRejectsDoubleIdentifier
    models_test.go:103: stderr = "…pass model once: as the [model] argument or via --model, not both…", want the double-identifier usage error

1fa466c replaced the hand-written addPositionalIdentifier with the generated positional wiring, so a doubly supplied identifier now reports the generated message (pass model once: …) instead of pass the identifier once. The CLI behaviour is correct; the contract test still pinned the removed wording.

This updates the expected substring (and the test's doc comment). go test ./... is green on main with this change.

… get`

1fa466c moved `models get` onto the generated positional wiring, which
reports a doubly supplied identifier as "pass model once: as the [model]
argument or via --model, not both". TestModelsGetRejectsDoubleIdentifier
still pinned the removed hand-written "pass the identifier once" message
and failed on main.
@2ynn
2ynn requested a review from a team September 28, 2026 21:50

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates the TestModelsGetRejectsDoubleIdentifier test in tests/contract/models_test.go to assert the error message 'pass model once' instead of 'pass the identifier once', aligning with the updated error message. I have no feedback to provide as there are no review comments.

@2ynn
2ynn requested a review from wanlin31 September 28, 2026 21:57
@2ynn
2ynn merged commit 562e4f5 into main Sep 28, 2026
7 checks passed
@BenJomy

BenJomy commented Sep 28, 2026 via email

Copy link
Copy Markdown
@wanlin31

wanlin31 commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Hi @BenJomy

Sorry for the inconvenience here.

You are receiving these notifications because your GitHub account is watching/subscribed to this repository. To stop receiving emails, go to https://github.com/google-gemini/gemini-api-cli
, click the Watch button in the top right, and select Ignore or Participating and @mentions only. You can also click the Unsubscribe link at the bottom of the email.

I think the content sent to you is in Is Hebrew, maybe your email is configured to Hebrew?

בתאריך יום ג׳, 29 בספט׳ 2026, 01:05, מאת Qynn Schwaab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants