Skip to content

Commit

Permalink
update test_anonymous_usage_stats.py to match update made to dbt-core
Browse files Browse the repository at this point in the history
  • Loading branch information
McKnight-42 committed May 8, 2024
1 parent c0115cf commit 3f8401a
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 3f8401a

Please sign in to comment.