fix: facet keys always use full relation chain (#190)

This commit is contained in:
d3vyce
2026-03-27 18:56:58 +01:00
committed by GitHub
parent 9dad59e25d
commit 5215b921ae
4 changed files with 35 additions and 31 deletions

View File

@@ -182,8 +182,7 @@ class TestOffsetPagination:
body = resp.json()
fa = body["filter_attributes"]
assert set(fa["status"]) == {"draft", "published"}
# "name" is unique across all facet fields — no prefix needed
assert set(fa["name"]) == {"backend", "python"}
assert set(fa["category__name"]) == {"backend", "python"}
@pytest.mark.anyio
async def test_filter_attributes_scoped_to_filter(