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

fix test using custom global var #297

Closed
wants to merge 1 commit into from
Closed

Conversation

emmyoop
Copy link
Member

@emmyoop emmyoop commented Oct 20, 2022

resolves dbt-labs/dbt-core#5228

Description

This test uses the DBT_ENV_CUSTOM_ENV which is now global. It needs to be reset in the test.

Checklist

@cla-bot cla-bot bot added the cla:yes label Oct 20, 2022
@github-actions
Copy link
Contributor

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-snowflake contributing guide.

@emmyoop emmyoop added the Skip Changelog Skips GHA to check for changelog file label Oct 20, 2022
@@ -91,46 +92,6 @@ def _set_updated_at_to(self, delta):
self.last_inserted_time = insert_time.strftime(
"%Y-%m-%dT%H:%M:%S+00:00")


class TestSources(SuccessfulSourcesTest):
Copy link
Member Author

@emmyoop emmyoop Oct 20, 2022

Choose a reason for hiding this comment

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

This doesn't actually run any tests...

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree this code doesn't run tests. However, it seems the subsequent test relies on method overrides in SuccessfulSourcesTest. I don't know enough about this test to know exactly what it wants to cover. Obviously this needs to be revised when it gets ported away from the integration framework.

I'm gonna close this PR, but I stole your patch for this PR and credited you/this PR directly in the commit 😇

@mikealfare mikealfare deleted the er/fix-sources-test branch February 17, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes Skip Changelog Skips GHA to check for changelog file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-624] [Feature] Allow for custom metadata to be attached to logs
2 participants