We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7529a38 commit 2dd338dCopy full SHA for 2dd338d
tests/unit/test_files_checks.py
@@ -279,3 +279,14 @@ def test_check_jsonl_wrong_turn_type(tmp_path: Path):
279
"Invalid format on line 1 of the input file. Expected a dictionary"
280
in report["message"]
281
)
282
+
283
284
+def test_check_jsonl_extra_column(tmp_path: Path):
285
+ file = tmp_path / "extra_column.jsonl"
286
+ content = [{"text": "Hello, world!", "extra_column": "extra"}]
287
+ with file.open("w") as f:
288
+ f.write("\n".join(json.dumps(item) for item in content))
289
290
+ report = check_file(file)
291
+ assert not report["is_check_passed"]
292
+ assert "Found extra column" in report["message"]
0 commit comments