Skip to content

test(ops): add AsyncDakeraClient.debug_config() parity tests (DAK-7477) - #191

Open
ferhimedamine wants to merge 4 commits into
mainfrom
test/async-debug-config-parity
Open

test(ops): add AsyncDakeraClient.debug_config() parity tests (DAK-7477)#191
ferhimedamine wants to merge 4 commits into
mainfrom
test/async-debug-config-parity

Conversation

@ferhimedamine

Copy link
Copy Markdown
Contributor

Summary

  • AsyncDakeraClient.debug_config() had zero test coverage despite the sync client having 2 tests in TestDebugConfig.
  • Adds TestAsyncDebugConfig with 2 async parity tests: happy-path (GETs /debug/config, returns env-var dict) and 403 → AuthorizationError.
  • 40/40 tests pass in test_ops.py.

Test plan

  • python3 -m pytest tests/test_ops.py → 40 passed
  • New: TestAsyncDebugConfig::test_async_debug_config_returns_env_map
  • New: TestAsyncDebugConfig::test_async_debug_config_forbidden_raises

🤖 Generated with Claude Code

Sync client had 2 tests in TestDebugConfig; async client had zero.
Adds TestAsyncDebugConfig with happy-path and 403/AuthorizationError
tests mirroring the sync coverage.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@ferhimedamine ferhimedamine added the auto-merge Auto-merge when CI passes label Jul 31, 2026
@ferhimedamine

Copy link
Copy Markdown
Contributor Author

Fix

ferhimedamine and others added 3 commits August 1, 2026 02:46
Ruff SIM117 requires a single `with` with multiple contexts
instead of nested `with` blocks.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
…ests

export_vectors cursor pagination had sync coverage but no async tests.
Adds TestAsyncExportVectorsCursor with two tests: cursor forwarded
in request body, and cursor omitted when None.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Collapsed with statement was 107 chars, exceeding the 100-char limit.
Use parenthesized multi-context with (valid Python 3.10+).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Auto-merge when CI passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant