You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: isolate the chunking tests from the shared conversations dir
test_dynamic_chunking_handles_an_empty_history asserted an empty history
and got one that already had messages in it. It passes alone and fails in
a whole-file run, which is why the branch looked clean: the branch's base
predates #1925.
Conversation defaults to name="conversation-test", and since #1925 a bare
Conversation() loads conversations/conversation_conversation-test.json
when that file exists. An earlier test in this module writes it, and it
survives between runs, so every bare Conversation() in these six tests
started with a history it never added.
Successfully loaded conversation from
.../conversations/conversation_conversation-test.json
AssertionError: assert 'user: Hello\n...\nuser: Hello' == ''
_chunking_conversation pins conversations_dir to pytest's tmp_path, so
each test gets an empty directory and cannot inherit or leak one. That
matches what the rest of this file already does with
setup_temp_conversations_dir.
Verified: whole file green on repeat runs and under random ordering, and
the merge with master now has the same failure set as master (0 = 0).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments