From 3f8401a4dbe3daa272697b14a346ee77e76ae8fe Mon Sep 17 00:00:00 2001 From: Matthew McKnight Date: Wed, 8 May 2024 17:17:41 -0500 Subject: [PATCH 1/3] update test_anonymous_usage_stats.py to match update made to dbt-core --- 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"]) From c1ae0781bbde30ca569ac732a9a46f3c25968eb6 Mon Sep 17 00:00:00 2001 From: Matthew McKnight Date: Wed, 8 May 2024 17:23:33 -0500 Subject: [PATCH 2/3] add changelog --- .changes/unreleased/Fixes-20240508-172325.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changes/unreleased/Fixes-20240508-172325.yaml diff --git a/.changes/unreleased/Fixes-20240508-172325.yaml b/.changes/unreleased/Fixes-20240508-172325.yaml new file mode 100644 index 000000000..42ed918ab --- /dev/null +++ b/.changes/unreleased/Fixes-20240508-172325.yaml @@ -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" From 9ac6e72a615ad4742aa417647c7220804abc8ac3 Mon Sep 17 00:00:00 2001 From: Matthew McKnight Date: Thu, 9 May 2024 09:12:24 -0500 Subject: [PATCH 3/3] remove changelog as not user facing --- .changes/unreleased/Fixes-20240508-172325.yaml | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 .changes/unreleased/Fixes-20240508-172325.yaml diff --git a/.changes/unreleased/Fixes-20240508-172325.yaml b/.changes/unreleased/Fixes-20240508-172325.yaml deleted file mode 100644 index 42ed918ab..000000000 --- a/.changes/unreleased/Fixes-20240508-172325.yaml +++ /dev/null @@ -1,6 +0,0 @@ -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"