Repository navigation
Backfill missing unit tests for pinecone.init() method - #168
Merged
Merged
Conversation
Collaborator
Author
|
When developing this locally I was just running |
micmmakarov
approved these changes
May 1, 2023
NishchayMahor
pushed a commit
to NishchayMahor/python-sdk-1
that referenced
this pull request
Sep 22, 2026
…ops (pinecone-io#168) * feat(admin): bump admin+oauth to 2026-07 with conformance for all 15 ops ADMIN_API_VERSION 2025-10 -> 2026-07. A structural diff of the six admin paths and every component schema shared with 2025-10 (descriptions and examples ignored) shows zero differences, and oauth_2026-07 differs from oauth_2025-10 only in info.version — so the sole wire-visible change is the X-Pinecone-Api-Version value. Adds conformance tests claiming all 14 carried-over admin operations plus oauth:get_token, each asserting method+path against the manifest, the 2026-07 header, and a schema round-trip. Three of those operations answer 202 with no body, which the pinecone-io#89 claim contract had no honest way to express. The manifest now records success_body per operation from the OAS, and ClaimRecorder gains assert_no_response_body; the two schema methods refuse each other's operations so an operation with a real schema cannot dodge the round-trip. TokenResponse is now a msgspec model so oauth:get_token has a schema to round-trip at all. * docs: add TokenResponse to the admin models reference
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A lot of refactoring is needed in
init()method to remove various UX footguns, improve performance (e.g. whoami), and give better error messages when the client is misconfigured. But before we can safely do any of that, we need to add a lot of missing tests to document the existing behavior of theinit()method.Asana Ticket
https://app.asana.com/0/1203260648987893/1204499608161625/f
Type