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
Background
tests/unit/publish/test_snapshot_messages.pyalready uses syrupy to lockin the exact format of index-lookup and validation messages. The
"already published" warning path in
_handle_publish_result(inlading/commands/publish.py) is not yet covered by any snapshot test, soits message format is unconstrained.
Scope
Add one or more syrupy snapshot tests to
tests/unit/publish/test_snapshot_messages.py(following the existing_warning_recordspattern) that exercise the already-published warningbranch of
_handle_publish_resultand lock in the exact warning messagevia
snapshot().References