We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b08bdda commit bbc32bcCopy full SHA for bbc32bc
1 file changed
tests/unit/test_files_checks.py
@@ -235,9 +235,9 @@ def test_check_jsonl_non_alternating_roles(tmp_path: Path):
235
assert "Invalid role turns" in report["message"]
236
237
238
-def test_check_jsonl_non_alternating_roles(tmp_path: Path):
239
- # Create a JSONL file with non-alternating user/assistant roles
240
- file = tmp_path / "non_alternating_roles.jsonl"
+def test_check_jsonl_assistant_role_exists(tmp_path: Path):
+ # Create a JSONL file with no assistant role
+ file = tmp_path / "assistant_role_exists.jsonl"
241
content = [{"messages": [{"role": "user", "content": "Hi"}]}]
242
with file.open("w") as f:
243
f.write("\n".join(json.dumps(item) for item in content))
0 commit comments