Skip to content

test(probe): run the vendor-wait test without httpx installed - #58

Merged
Adolanium merged 1 commit into
mainfrom
fix/57-vendor-wait-test-without-httpx
Nov 5, 2026
Merged

Adolanium merged 1 commit into
mainfrom
fix/57-vendor-wait-test-without-httpx

Conversation

@Adolanium

Copy link
Copy Markdown
Owner

test_vendor_wait_ends_before_the_gateway_shell_limit failed on a Python without httpx installed, with ['resetwatch'] != ['anthropic']. @Iversondwx reported it in #57.

_collect_cli imports httpx before it starts any vendor. When the import fails, it returns the probe cannot import httpx snapshot instead of running the slow Anthropic fetch that the test covers. CI installs httpx before the Python tests, which hid this. The README's Contributing section says the runtime tests need no packages.

The test now patches a stub httpx module into sys.modules. The vendor fetcher is already faked, so the import only has to succeed. The probe code is unchanged.

Testing:

  • With httpx blocked, the test failed for both the standalone and catalog probes before this change, and passes after it.
  • All of the Catalog package workflow steps pass locally: build_catalog.py --check, the catalog policy test, 85 Python tests, 102 Node tests, 36 catalog-mode Python tests and 74 catalog-mode Node tests.
  • Only the test file changes, so there's nothing to check in Desktop.

_collect_cli imports httpx before it starts any vendor, so on a Python without httpx the test got the 'probe cannot import httpx' snapshot instead of the slow Anthropic card. The fetcher is faked, so a stub module is enough. CI installs httpx, which hid this; the README says the runtime tests need no packages.
@Adolanium
Adolanium merged commit 2156bdd into main Nov 5, 2026
2 checks passed
@Adolanium
Adolanium deleted the fix/57-vendor-wait-test-without-httpx branch November 5, 2026 19:58
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