Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add mock template #131

Closed

Conversation

ricky-at-domain
Copy link

this template will look up all depend node for the given model and generate the mock test template, so user can focus on finding mock data rather then setup the mock test.

simply run compile with {{ mock_template(<model_name>, <project_name> }} in dbt/dbt_cloud.

@svdimchenko
Copy link

this template will look up all depend node for the given model and generate the mock test template, so user can focus on finding mock data rather then setup the mock test.

simply run compile with {{ mock_template(<model_name>, <project_name> }} in dbt/dbt_cloud.

@ricky-at-domain great job done with macro implementation. It would be nice to add the detailed macro usage and output example to doc and PR description

@cdiniz
Copy link
Collaborator

cdiniz commented Apr 15, 2024

Hi @ricky-at-domain , Thanks for the collaboration and sorry for the long delay in replying.
We discussed and we considered this functionality makes more sense outside of the package. We consider it as an util and not a piece of the package.

@cdiniz cdiniz closed this Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants