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

Migrate to new adapter testing framework #65

Merged
merged 6 commits into from
May 5, 2022

Conversation

hovaesco
Copy link
Member

@hovaesco hovaesco commented Apr 21, 2022

Overview

Checklist

  • This PR includes tests, or tests are not required/relevant for this PR
  • README.md updated and added information about my change
  • CHANGELOG.md updated and added information about my change

@hovaesco hovaesco force-pushed the hovaesco/testing-framework-v1.1 branch from 9a7d54c to 0fb1a03 Compare April 22, 2022 10:55
setup.py Show resolved Hide resolved
@hovaesco hovaesco force-pushed the hovaesco/testing-framework-v1.1 branch 5 times, most recently from b581d52 to a3d10f6 Compare April 26, 2022 08:23
@hovaesco hovaesco marked this pull request as ready for review April 26, 2022 08:34
@hovaesco hovaesco force-pushed the hovaesco/testing-framework-v1.1 branch from 68a7d27 to 48c5c93 Compare April 29, 2022 11:07
@AdamE87
Copy link

AdamE87 commented Apr 29, 2022

@hovaesco are we planning to move to a structure similar to the dbt-snowflake adapter ?

@hovaesco
Copy link
Member Author

Snowflake uses old tests structure in the folder you sent. We are moving to the new one.

@hovaesco hovaesco force-pushed the hovaesco/testing-framework-v1.1 branch from 48c5c93 to 6736940 Compare April 29, 2022 19:11
@findinpath
Copy link
Collaborator

Very very useful addition.

Good job @hovaesco & @jtcohen6

@hovaesco hovaesco force-pushed the hovaesco/testing-framework-v1.1 branch 3 times, most recently from 211d0b0 to fd4954f Compare May 4, 2022 18:54
@findinpath
Copy link
Collaborator

This PR looks very good.

A few minor comments are still open.

@hovaesco hovaesco force-pushed the hovaesco/testing-framework-v1.1 branch from fd4954f to d967d92 Compare May 4, 2022 20:13
# seed seeds
results = run_dbt(["seed"], expect_pass=True)
assert len(results) == 1
# run models two times to check on_table_exists = 'drop'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/dbt-labs/dbt-core/blob/c270a77552ae9fc66fdfab359d65a8db1307c3f3/tests/adapter/dbt/tests/adapter/basic/test_incremental.py

We could use the same mechanism as in test-incremental to change the seed before running the second time. This way, the test looks more realistic.

@hovaesco hovaesco merged commit 95e613f into master May 5, 2022
@hovaesco hovaesco deleted the hovaesco/testing-framework-v1.1 branch May 5, 2022 08:09
EminUZUN pushed a commit to EminUZUN/dbt-trino that referenced this pull request Feb 14, 2023
…ng-framework-v1.1

Migrate to new adapter testing framework
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants