DeepLcom / sql-mock

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

Add dbt support #26

Closed Somtom closed 10 months ago

Somtom commented 10 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: