Skip to content

Use vws-python 2026.2.25.1 and simplify respx tests#3019

Merged
adamtheturtle merged 2 commits intomainfrom
adamtheturtle/use-vws-python-2026-02-25
Feb 25, 2026
Merged

Use vws-python 2026.2.25.1 and simplify respx tests#3019
adamtheturtle merged 2 commits intomainfrom
adamtheturtle/use-vws-python-2026-02-25

Conversation

@adamtheturtle
Copy link
Member

@adamtheturtle adamtheturtle commented Feb 25, 2026

Bump the dev dependency pin to vws-python 2026.2.25.1. Replace the large raw-httpx respx usage test mirror with a smaller async vws-python client suite covering AsyncVWS, AsyncCloudRecoService, and AsyncVuMarkService through MockVWS. This keeps httpx/respx interception coverage while reducing duplication and boilerplate in the test suite.


Note

Low Risk
Low risk: dependency pin bump plus a test-only refactor; main risk is reduced coverage for raw httpx/non-Vuforia passthrough behavior compared to the previous suite.

Overview
Updates the dev dependency pin for vws-python to 2026.2.25.1.

Refactors test_respx_mock_usage.py by replacing the large raw-httpx interception suite with a smaller set of async integration tests that exercise MockVWS via vws async clients (AsyncVWS, AsyncCloudRecoService, AsyncVuMarkService), covering timeout propagation, custom base URL path prefixes, target lifecycle operations, cloud query matching (using ExactMatcher), and VuMark PNG byte responses.

Written by Cursor Bugbot for commit e2019ab. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

)
await vws_client.wait_for_target_processed(target_id=target_id)
results = await query_client.query(image=high_quality_image)
assert [result.target_id for result in results] == [target_id]
Copy link

Choose a reason for hiding this comment

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

BytesIO reused for add and query without seek

Medium Severity

The same high_quality_image BytesIO is passed to add_target and then query. Uploading for add_target advances the stream position to EOF, so query reads from EOF and sends empty image data. The query therefore returns no matches and the assertion fails.

Fix in Cursor Fix in Web

@adamtheturtle adamtheturtle merged commit ab425f1 into main Feb 25, 2026
8 of 11 checks passed
@adamtheturtle adamtheturtle deleted the adamtheturtle/use-vws-python-2026-02-25 branch February 25, 2026 09:26
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