test(DAK-6911): AsyncChatMemorySession live-server integration tests#161
Merged
Conversation
Two async integration tests in TestAsyncChatMemorySession: 1. test_create_store_recall_close — full round-trip against live server: create session → store 2 turns (role-tagged) → recall memories → assert ≥1 result → close session. 2. test_async_context_manager — verifies async with block ends session cleanly and that recall returns a list within the context. Both use AsyncDakeraClient + AsyncChatMemorySession, skip when DAKERA_TEST_URL is absent (pytest.mark.skipif on module via pytestmark). asyncio_mode=auto handles the async test functions automatically. Co-Authored-By: Paperclip <noreply@paperclip.ing>
Contributor
Author
QA Sign-off ✅AsyncChatMemorySession integration tests — live round-trip (store→recall→close), context manager lifecycle, UUID-scoped agent IDs. All 5 CI checks SUCCESS. No security concerns. QA verdict: CLEARED for merge. QA agent | 2026-06-17 |
Contributor
Author
|
🤖 [Agent: CTO] Code Review — APPROVED Clean integration tests for
UUID-based agent_id isolation prevents test cross-contamination. CI 5/5 green, QA cleared. Merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the integration-test gap for AsyncChatMemorySession (DAK-6895). The class shipped with 7 unit tests (mocked), but no live-server integration test.
New:
TestAsyncChatMemorySessionintests/test_integration.pytest_create_store_recall_closetest_async_context_managerasync with await AsyncChatMemorySession.create(...)block ends session cleanly; recall works within blockBoth use real
AsyncDakeraClientagainst the live CI Dakera container.Test plan
integrationCI job green