Skip to content

Commit 3d726dd

Browse files
committed
Use jsonlines for gitattributes to work
1 parent 5a568e3 commit 3d726dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_api_routes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ async def test_simple_chat_streaming_flow(test_client, snapshot):
140140
response_data = response.content
141141
assert response.status_code == 200
142142
assert response.headers["Content-Type"] == "application/x-ndjson"
143-
snapshot.assert_match(response_data, "simple_chat_streaming_flow_response.txt")
143+
snapshot.assert_match(response_data, "simple_chat_streaming_flow_response.jsonlines")
144144

145145

146146
@pytest.mark.asyncio
@@ -163,7 +163,7 @@ async def test_advanced_chat_flow(test_client, snapshot):
163163

164164

165165
@pytest.mark.asyncio
166-
async def test_advanved_chat_streaming_flow(test_client, snapshot):
166+
async def test_advanced_chat_streaming_flow(test_client, snapshot):
167167
"""test the advanced chat streaming flow route with hybrid retrieval mode"""
168168
response = test_client.post(
169169
"/chat/stream",
@@ -177,7 +177,7 @@ async def test_advanved_chat_streaming_flow(test_client, snapshot):
177177
response_data = response.content
178178
assert response.status_code == 200
179179
assert response.headers["Content-Type"] == "application/x-ndjson"
180-
snapshot.assert_match(response_data, "advanced_chat_streaming_flow_response.txt")
180+
snapshot.assert_match(response_data, "advanced_chat_streaming_flow_response.jsonlines")
181181

182182

183183
@pytest.mark.asyncio

0 commit comments

Comments
 (0)