supermemory/packages/openai-sdk-python/tests
aloktripathi1 7ba82429ca test(openai): don't hard-require optional aiohttp in fail-open black-box tests
aiohttp is only declared under the optional `async` extra, not the dev
dependency group, so the black-box repros failed with ModuleNotFoundError
under the default `uv sync --dev` setup before exercising anything.

- Async repro now uses pytest.importorskip("aiohttp"), skipping cleanly
  when the extra is absent (it exercises the aiohttp code path).
- Sync repro forces the requests fallback by making `import aiohttp` fail
  via sys.modules, so it runs in the default dev setup and actually covers
  the requests path production uses when aiohttp is not installed.

Verified both ways: with aiohttp -> 35 passed, 11 skipped; without aiohttp
-> 34 passed, 12 skipped (async repro skips, sync repro passes via requests).
2026-07-13 20:39:26 +05:30
..
__init__.py feat: openai js and python sdk utilities (#389) 2025-08-27 23:34:49 +00:00
test_middleware.py test(openai): don't hard-require optional aiohttp in fail-open black-box tests 2026-07-13 20:39:26 +05:30
test_tools.py fix(openai-sdk): use AsyncSupermemory and correct client API calls (#1063) 2026-06-17 09:05:11 -07:00