File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ def test_check_jsonl_invalid_role(tmp_path: Path):
207207 report = check_file (file )
208208
209209 assert not report ["is_check_passed" ]
210- assert "Found invalid role `invalid_role`" in report ["message" ]
210+ assert "Invalid role `invalid_role` in conversation " in report ["message" ]
211211
212212
213213def test_check_jsonl_non_alternating_roles (tmp_path : Path ):
@@ -257,7 +257,7 @@ def test_check_jsonl_missing_field_in_conversation(tmp_path: Path):
257257
258258 report = check_file (file )
259259 assert not report ["is_check_passed" ]
260- assert "Field `content` is missing for a turn " in report ["message" ]
260+ assert "Missing required column `content`" in report ["message" ]
261261
262262
263263def test_check_jsonl_wrong_turn_type (tmp_path : Path ):
@@ -277,7 +277,7 @@ def test_check_jsonl_wrong_turn_type(tmp_path: Path):
277277 report = check_file (file )
278278 assert not report ["is_check_passed" ]
279279 assert (
280- "Invalid format on line 1 of the input file. Expected a dictionary "
280+ "Invalid format on line 1 of the input file. The `messages` column must be a list of dicts. "
281281 in report ["message" ]
282282 )
283283
You can’t perform that action at this time.
0 commit comments