Skip to content

test: cover empty and whitespace-only transcript parse errors - #6

Open
AshSgDe29071999 wants to merge 1 commit into
AgentPostmortem:mainfrom
AshSgDe29071999:test/empty-transcript-parse-error
Open

test: cover empty and whitespace-only transcript parse errors#6
AshSgDe29071999 wants to merge 1 commit into
AgentPostmortem:mainfrom
AshSgDe29071999:test/empty-transcript-parse-error

Conversation

@AshSgDe29071999

Copy link
Copy Markdown

Summary

Adds focused tests for empty and whitespace-only transcripts so parsers fail closed with `ParseError` instead of inventing a silent empty session.

Case covered

  • `parse_text("")` / whitespace-only
  • empty `.jsonl` file via `parse_file`

Test plan

  • `pytest tests/test_parsers.py` green

Fixes #2

Empty input was untested. Pin that parse_text/parse_file raise ParseError
rather than inventing a zero-message session.

Fixes AgentPostmortem#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a test for an untested edge case

1 participant