Skip to content

Commit e48535d

Browse files
committed
Delete volatile property from snapshot
1 parent c2a810f commit e48535d

File tree

2 files changed

+3
-2
lines changed
  • tests

2 files changed

+3
-2
lines changed

tests/snapshots/test_app/test_chat_text_filter_public_documents/auth_public_documents_client0/result.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,5 @@
9999
"message": {
100100
"content": "The capital of France is Paris. [Benefit_Options-2.pdf].",
101101
"role": "assistant"
102-
},
103-
"session_state": "4cdf8d10-35b9-42d7-a93b-39dfba9308b8"
102+
}
104103
}

tests/test_app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,8 @@ async def test_chat_text_filter_public_documents(auth_public_documents_client, s
514514
== "category ne 'excluded' and ((oids/any(g:search.in(g, 'OID_X')) or groups/any(g:search.in(g, 'GROUP_Y, GROUP_Z'))) or (not oids/any() and not groups/any()))"
515515
)
516516
result = await response.get_json()
517+
if result.get("session_state"):
518+
del result["session_state"]
517519
snapshot.assert_match(json.dumps(result, indent=4), "result.json")
518520

519521

0 commit comments

Comments
 (0)