harbor run -t openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-4341harbor download openthoughts/tasktrove-exp-flat25-stackoverflow-v2-5k-stackoverflow-4341Title: How to implement a deterministic DbtHook simulator for pytest tests without a real dbt installation
Body: I'm building a pytest-based test suite that exercises dbt-like test behavior, but I want a lightweight, deterministic simulator instead of wiring up a real dbt installation. The goal is to implement a single module (e.g., dbt_hook.py) that provides a DbtHook class and a small set of supporting types to drive tests that exercise dbt-like test semantics.
What I need to build
A module that exposes:
API and behavior
DbtHook class
ConfigFactory and Config
Result data structures
Test-driven behavior to satisfy tests
Notes and constraints
Example usage outline (internal, not part of tests)
assert r.status == TestStatus.Pass
Deliverable
If you have suggestions for testing approaches or an alternative design that keeps the interface stable while meeting the exact counts and flags described, I’d love to hear them.