Skip to content

Add syrupy snapshot tests for 'already published' warning in _handle_publish_result #73

Description

@coderabbitai

Background

tests/unit/publish/test_snapshot_messages.py already uses syrupy to lock
in the exact format of index-lookup and validation messages. The
"already published" warning path in _handle_publish_result (in
lading/commands/publish.py) is not yet covered by any snapshot test, so
its message format is unconstrained.

Scope

Add one or more syrupy snapshot tests to
tests/unit/publish/test_snapshot_messages.py (following the existing
_warning_records pattern) that exercise the already-published warning
branch of _handle_publish_result and lock in the exact warning message
via snapshot().

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions