dbt-labs / dbt-adapter-tests

a pytest plugin for dbt adapter test suites
19 stars 11 forks source link

Is there a way to change model name used for testing #37

Open tovganesh opened 2 years ago

tovganesh commented 2 years ago

Hi, Asking here as I couldn't find an appropriate forum. Is there a way to override the name of the model used for testing. For instance for the incremental test, is it possible to change the name of the model? The reason being - for the adapter we are building (impala), "incremental" is a keyword, and cannot be used as identifier to make a table. Any advice here could be helpful.

jtcohen6 commented 2 years ago

Hey @tovganesh!

We're planning to replace this package very soon (https://github.com/dbt-labs/dbt-adapter-tests/issues/36) with a newer framework that looks and feels a bit more like pytest. If you're up for giving that a go, we have an initial version available, and some in-progress docs that go over how to use it: https://deploy-preview-1263--docs-getdbt-com.netlify.app/docs/contributing/testing-a-new-adapter

The newer framework should make it much much simpler to override the built-in fixtures used by the basic tests, including the names of any models (such as incremental).