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 regression test case #188

Merged
merged 22 commits into from
Jun 1, 2022
Merged

Add regression test case #188

merged 22 commits into from
Jun 1, 2022

Conversation

McKnight-42
Copy link
Contributor

@McKnight-42 McKnight-42 commented May 18, 2022

#180

Description

checks for backwards compatibility in an edge case that database/schema information can be grabbed from default

Checklist

  • I have signed the CLA
  • 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
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-bigquery next" section.

…_bigquery_database_override test working on getting the rest to work for first test
@cla-bot cla-bot bot added the cla:yes label May 18, 2022
Copy link
Contributor

@jtcohen6 jtcohen6 left a comment

Choose a reason for hiding this comment

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

Looks good, nearly there! Remember you'll want to include the fix as well when backporting to 1.1.latest.

# backwards compatibility: fill in with defaults if not specified
database = database or conn.credentials.database
schema = schema or conn.credentials.schema

tests/functional/test_get_columns_incomplete_database.py Outdated Show resolved Hide resolved
tests/functional/test_get_columns_incomplete_database.py Outdated Show resolved Hide resolved
tests/functional/test_get_columns_incomplete_database.py Outdated Show resolved Hide resolved
@McKnight-42 McKnight-42 self-assigned this May 19, 2022
@McKnight-42
Copy link
Contributor Author

McKnight-42 commented May 19, 2022

@jtcohen6 made the suggested fixes any other extensions you think would be good for the test case? the two docs_generate tests that are failing will hopefully be fixed with gerda's PR. I know we aren't necessarily doing a changelog for the test conversions but does this regression test case deserve one?

Copy link
Contributor

@jtcohen6 jtcohen6 left a comment

Choose a reason for hiding this comment

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

Test looks great! Confirmed that it fails without the change here, and succeeds with it:

# backwards compatibility: fill in with defaults if not specified
database = database or conn.credentials.database
schema = schema or conn.credentials.schema

Just remember to pull in that change as well when backporting to 1.1.latest

@McKnight-42 McKnight-42 merged commit 799790e into main Jun 1, 2022
@McKnight-42 McKnight-42 deleted the mcknight/convert_override_test branch June 1, 2022 16:16
@McKnight-42 McKnight-42 mentioned this pull request Jun 1, 2022
4 tasks
McKnight-42 added a commit that referenced this pull request Jun 8, 2022
* adding regression test case draft

* backporting #165 to 1.1.0 latest

* trying to take into account CT-604, remove old test, remove BIGQUERY_TEST_DATABASE env
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