feat(pipeline): add fixtures system for cached test data #30

Closed
opened 2026-03-18 17:05:41 +00:00 by david · 0 comments
Owner

Summary

Introduce a fixtures system for providing cached data (e.g., headlines) to avoid network dependencies during development and testing.

Features

  • New engine/fixtures/headlines.json containing cached headline data
  • Support for source="fixture" in PipelinePreset
  • fetch.py cache path moved to engine/fixtures/headlines.json
  • Updated fixtures loading logic in both preset-based and direct CLI modes

Why

  • Faster development: no network fetch needed
  • Reliable testing: deterministic data without external dependencies
  • Offline capability: work without internet access

Files Changed

  • engine/fetch.py (cache path update)
  • engine/fixtures/headlines.json (new, sample headline dataset)
  • engine/pipeline/presets.py (add FIXTURE_PRESET)
  • engine/app.py (fixture source handling)

Status

Feature complete.

  • Works with direct CLI mode validation (#29)
  • Supports pipeline introspection and development demos
## Summary Introduce a fixtures system for providing cached data (e.g., headlines) to avoid network dependencies during development and testing. ## Features - New `engine/fixtures/headlines.json` containing cached headline data - Support for `source="fixture"` in PipelinePreset - `fetch.py` cache path moved to `engine/fixtures/headlines.json` - Updated fixtures loading logic in both preset-based and direct CLI modes ## Why - Faster development: no network fetch needed - Reliable testing: deterministic data without external dependencies - Offline capability: work without internet access ## Files Changed - `engine/fetch.py` (cache path update) - `engine/fixtures/headlines.json` (new, sample headline dataset) - `engine/pipeline/presets.py` (add FIXTURE_PRESET) - `engine/app.py` (fixture source handling) ## Status Feature complete. ## Related - Works with direct CLI mode validation (#29) - Supports pipeline introspection and development demos
david closed this issue 2026-03-18 22:03:20 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: klubhaus/sideline#30