Skip to content

test(gkb): the #532 fix still finds an unowned document beside a contribution - #547

Open
jwvanderstam wants to merge 1 commit into
mainfrom
test/gkb-unowned-control
Open

jwvanderstam wants to merge 1 commit into
mainfrom
test/gkb-unowned-control

Conversation

@jwvanderstam

Copy link
Copy Markdown
Owner

Follow-up to #532, rescued from a worktree where it was left uncommitted.

test_a_contribution_is_not_mistaken_for_a_document_without_a_workspace proved the contribution is no longer matched. It did not prove that exists(filename, None) and stale() still match what they should, so a fix that made both return nothing would have passed. The test now inserts an unowned document with the same filename and asserts:

  • exists returns that document;
  • stale returns it and the source document, but not the contribution.

This changes the test only. Against Postgres: tests/integration/test_gkb_contribution.py, 13 passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KkWPq9YWxtZ6hbDvMft8fh

…ribution

The test proved a contribution is no longer matched as a document without
a workspace. It did not prove the queries still match the documents they
should: a fix that made `exists(filename, None)` and `stale()` return
nothing would have passed it. It now inserts an unowned document of the
same filename, and asserts `exists` returns that one and `stale` returns
it and the source, but not the contribution.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KkWPq9YWxtZ6hbDvMft8fh
@sonarqubecloud

Copy link
Copy Markdown

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