Previously, the package only looked for prod relations for models and snapshots. Most tests only have one ref, so getting refs with dbt's builtin macro was good enough.
However, this wasn't ideal for tests with refs to multiple models, such as relationship tests; if a comparison model didn't exist in dev, tests would fail. These changes expands the model logic to cover tests.
Previously, the package only looked for prod relations for models and snapshots. Most tests only have one ref, so getting refs with dbt's builtin macro was good enough.
However, this wasn't ideal for tests with refs to multiple models, such as relationship tests; if a comparison model didn't exist in dev, tests would fail. These changes expands the model logic to cover tests.