Skip to content

Commit bbc32bc

Browse files
committed
fix test
1 parent b08bdda commit bbc32bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/test_files_checks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ def test_check_jsonl_non_alternating_roles(tmp_path: Path):
235235
assert "Invalid role turns" in report["message"]
236236

237237

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"
238+
def test_check_jsonl_assistant_role_exists(tmp_path: Path):
239+
# Create a JSONL file with no assistant role
240+
file = tmp_path / "assistant_role_exists.jsonl"
241241
content = [{"messages": [{"role": "user", "content": "Hi"}]}]
242242
with file.open("w") as f:
243243
f.write("\n".join(json.dumps(item) for item in content))

0 commit comments

Comments
 (0)