Skip to content

Commit f9f0d7f

Browse files
test: assert session title is a non-empty str in fixture shape check
1 parent c877dae commit f9f0d7f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/test_real_session_fixtures.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ def _fixture_path(name: str) -> str:
2727

2828
def _assert_session_shape(session: dict) -> None:
2929
assert isinstance(session["session_id"], str) and session["session_id"]
30-
assert session["title"] not in ("", "Untitled Session"), (
31-
"Expected a real title from the fixture's first user message"
32-
)
30+
assert isinstance(session["title"], str) and session["title"] not in (
31+
"",
32+
"Untitled Session",
33+
), "Expected a real title from the fixture's first user message"
3334
assert isinstance(session["messages"], list)
3435
assert isinstance(session["metadata"], dict)
3536
assert session["metadata"]["session_id"] == session["session_id"]

0 commit comments

Comments
 (0)