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

update test_anonymous_usage_stats.py #1029

Merged
merged 3 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20240508-172325.yaml
McKnight-42 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: update test structure to match changes made in dbt-core
time: 2024-05-08T17:23:25.938128-05:00
custom:
Author: McKnight-42
Issue: "1029"
8 changes: 4 additions & 4 deletions tests/functional/adapter/test_anonymous_usage_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def models(self):

class TestAnonymousUsageStatsOn(AnonymousUsageStatsBase):
@pytest.fixture(scope="class")
def profiles_config_update(self):
return {"config": {"send_anonymous_usage_stats": True}}
def project_config_update(self):
return {"flags": {"send_anonymous_usage_stats": True}}

def test_stats_get_sent(self, project):
_, logs = run_dbt_and_capture(["--debug", "run"])
Expand All @@ -35,8 +35,8 @@ def test_stats_get_sent(self, project):

class TestAnonymousUsageStatsOff(AnonymousUsageStatsBase):
@pytest.fixture(scope="class")
def profiles_config_update(self):
return {"config": {"send_anonymous_usage_stats": False}}
def project_config_update(self, dbt_profile_target):
return {"flags": {"send_anonymous_usage_stats": False}}

def test_stats_do_not_get_sent(self, project):
_, logs = run_dbt_and_capture(["--debug", "run"])
Expand Down
Loading