godatadriven / pytest-dbt-core

Pytest plugin for dbt core
https://pytest-dbt-core.readthedocs.io/en/latest/
Apache License 2.0
58 stars 2 forks source link

[Feature] Add examples for mocking macros #20

Open jyotidhiman0610 opened 2 years ago

jyotidhiman0610 commented 2 years ago

Is this your first time opening an issue?

Describe the Feature

We are working on a use case where the macro internally maps to some classes. To perform the testing efficiently, classes need to be mocked instead of class functionality being used. With macros directly pytest mocking cannot be used, some examples need to be added to showcase how to mock in the case of macros.

Describe alternatives you've considered

No response

Who will this benefit?

No response

Are you interested in contributing this feature?

No response

Anything else?

No response

JCZuurmond commented 1 year ago

Hi @jyotidhiman0610, I am sorry I missed your issue! I updated my notifications settings to make sure this does not happen again.

Could you share an example where you use the (mocked) classes?