Skip to content

Un-skip inventory integration tests and adapt to cross-location adjustment fields#196

Closed
menglinblock wants to merge 5 commits into
masterfrom
menglin/unskip-inventory-tests
Closed

Un-skip inventory integration tests and adapt to cross-location adjustment fields#196
menglinblock wants to merge 5 commits into
masterfrom
menglin/unskip-inventory-tests

Conversation

@menglinblock

Copy link
Copy Markdown
Contributor

🤖 Opened by menglin's AI agent.

Do not merge — CI verification only

This draft PR exists solely to run the integration test suite (which has access to TEST_SQUARE_TOKEN) against the changes in release PR #195 plus a test fix. The final commit (Un-skip inventory integration tests and adapt to cross-location adjustment fields) is intended to be cherry-picked onto fern-bot/2026-07-13_21-32-27_131.

What changed

In the 2026-07-15 Square API version, InventoryAdjustment.location_id was replaced by from_location_id and to_location_id (the API now returns 400 adjustment.from_location_id cannot be empty if from_location_id is missing on an ADJUSTMENT change). This PR:

  • Removes all 7 @pytest.mark.skip(...) decorators from tests/integration/test_inventory.py (added in 🌿 Fern Regeneration -- November 21, 2025 #175, Nov 2025, as "Temporarily skip tests with false failures" / server-side errors).
  • In ADJUSTMENT payloads (helper create_initial_adjustment, test_batch_change_inventory, test_retrieve_inventory_adjustments), replaces the single location_id field with from_location_id and to_location_id both set to the same location ID (same-location adjustment) — matching the fix already applied in the Java/PHP/.NET/Node SDKs.
  • Physical-count payloads and location_ids=[...] query parameters are unchanged (InventoryPhysicalCount.location_id is unchanged in this API version).

The base branch here is master only because the new field names exist only in the regenerated SDK on the fern-bot release branch; the first two commits are the fern-bot regeneration itself.

Made with Cursor

fern-api Bot and others added 5 commits July 14, 2026 16:59
Generated by Fern
CLI Version: unknown
Generators:
  - fernapi/fern-python-sdk: 4.55.4
…tment fields

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…flakiness

Co-authored-by: Cursor <cursoragent@cursor.com>
@menglinblock

Copy link
Copy Markdown
Contributor Author

🤖 CI-verification vehicle only — the 3 commits were cherry-picked onto fern-bot/2026-07-13_21-32-27_131 (release PR #195), which is now green. Closing.

@menglinblock menglinblock deleted the menglin/unskip-inventory-tests branch July 14, 2026 18:03
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