DeepLcom / sql-mock

A Python library to test your SQL models using mocked input data
MIT License
33 stars 5 forks source link

Add dbt support #26

Closed Somtom closed 8 months ago

Somtom commented 8 months ago

Problem Context

Relates to https://github.com/DeepLcom/sql-mock/issues/7

Currently it is not straight forward to use SQLMock with dbt. This PR should solve that by adding dbt support

What changed

Introduced new decorator classes:

Introduced a SQLMockConfig class that can be used to globally set the path to the dbt manifest file, e.g.:

SQLMockConfig.set_dbt_manifest_path("./tests/resources/dbt/dbt_manifest.json")

What to look for

Make sure to take a close look at: