<#3057 test: Use snapshots to test message streams...
# meltano-repo-activity
g
#3057 test: Use snapshots to test message streams in parent-child taps Pull request opened by edgarrmondragon ## Summary by Sourcery Adopt snapshot testing for parent-child tap message streams: freeze timestamps, capture stdout and logs for verification with pytest-snapshot, and configure consistent logging format. Enhancements: • Replace manual JSON parsing and assertions in parent-child tests with pytest-snapshot-based assertions • Remove the custom
_get_messages
helper and streamline test execution with redirect_stdout and caplog contexts • Freeze test timestamps using time_machine.travel to ensure deterministic output Build: • Add
log_format
setting to
pyproject.toml
for consistent CLI logging Tests: • Annotate parent-child tests with
pytest.mark.snapshot
and use the
snapshot
fixture to validate
singer.jsonl
and
stderr.log
outputs • Add snapshot files under
tests/core/snapshots
for the updated tests meltano/sdk