#3075 test: Use snapshots to test message streams in sample target CSV tests
Pull request opened by
edgarrmondragon
## Summary by Sourcery
Adopt snapshot testing for sample CSV target tests to capture deterministic message stream outputs and logs, freeze time for consistency, and update tooling to support generated snapshots.
New Features:
• Introduce snapshot-based assertions for tap, mapper, and target outputs and logs in sample CSV tests
Enhancements:
• Decorate sample CSV tests with
time_machine.travel and caplog fixtures to stabilize timestamps and capture logs
• Enforce single-threaded processing in tests by setting target.max_parallelism to 1
• Refactor tests to redirect and read I/O streams for snapshot comparison
Build:
• Update codespell configuration to skip generated snapshot JSONL files
Tests:
• Add pytest-snapshot fixtures and generate snapshot files for sample target CSV tests
• Mark the legacy sync_end_to_end helper as no-cover in testing utilities
meltano/sdk