Adds the given/when/then commenting

This commit is contained in:
stumpylog
2026-09-13 15:28:40 -07:00
committed by GitHub
parent b0ad949987
commit 5fbb227e76
7 changed files with 369 additions and 73 deletions
@@ -40,6 +40,15 @@ class TestJsonSubpathsAreWrittenAtIndexTime:
self,
backend: TantivyBackend,
) -> None:
"""
GIVEN:
- A document with a Note and a CustomFieldInstance attached
WHEN:
- The document is indexed via TantivyBackend.add_or_update
THEN:
- Every subpath PUBLIC_FIELDS declares for notes/custom_fields
is present as a key in the document's stored JSON payload
"""
user = User.objects.create_user(username="completeness-user")
field = CustomField.objects.create(
name="Completeness Field",