From 489dbe8a4ea9bf7eb79319ed6ee59756e122cb60 Mon Sep 17 00:00:00 2001 From: Matthew McKnight <91097623+McKnight-42@users.noreply.github.com> Date: Wed, 15 May 2024 10:13:20 -0500 Subject: [PATCH] update test_anonymous_usage_stats.py (#1029) * update test_anonymous_usage_stats.py to match update made to dbt-core * add changelog * remove changelog as not user facing --- tests/functional/adapter/test_anonymous_usage_stats.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/functional/adapter/test_anonymous_usage_stats.py b/tests/functional/adapter/test_anonymous_usage_stats.py index 145b4aa0f..bc5a4d334 100644 --- a/tests/functional/adapter/test_anonymous_usage_stats.py +++ b/tests/functional/adapter/test_anonymous_usage_stats.py @@ -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"]) @@ -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"])