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 functional tests for unit testing #976

Merged
merged 6 commits into from
Feb 21, 2024
Merged

Add functional tests for unit testing #976

merged 6 commits into from
Feb 21, 2024

Conversation

MichelleArk
Copy link
Contributor

@MichelleArk MichelleArk commented Feb 7, 2024

resolves ##987
docs dbt-labs/docs.getdbt.com/#

Problem

Solution

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX

@MichelleArk MichelleArk requested a review from a team as a code owner February 7, 2024 16:02
@cla-bot cla-bot bot added the cla:yes label Feb 7, 2024
Copy link
Contributor

github-actions bot commented Feb 7, 2024

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the dbt-spark contributing guide.

@MichelleArk MichelleArk force-pushed the test-unit-testing branch 2 times, most recently from e67a397 to 88d2a47 Compare February 7, 2024 23:46
dev-requirements.txt Outdated Show resolved Hide resolved
@MichelleArk MichelleArk changed the title Add tests for unit testing Add functional tests for unit testing Feb 13, 2024
Copy link
Contributor

@mikealfare mikealfare left a comment

Choose a reason for hiding this comment

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

Approving, pending the changelog check.

@MichelleArk MichelleArk merged commit ef91425 into main Feb 21, 2024
16 of 17 checks passed
@MichelleArk MichelleArk deleted the test-unit-testing branch February 21, 2024 16:56
@@ -387,6 +387,7 @@
"identifier": tmp_identifier
}) -%}

{%- set tmp_relation = tmp_relation.include(database=false, schema=false) -%}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For posterity, I believe this change was made to avoid including the database and schema when rendering the create statement for a view, which was necessary by the unit testing framework.

I believe it could be implemented more precisely by the changes here: https://github.com/dbt-labs/dbt-spark/pull/978/files#diff-786bb6587e86e50a2d01888eb2d4a5257e9a0025f75379214fa93cd5a033c9fbR141

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

Successfully merging this pull request may close these issues.

2 participants