From fcc874a3f7107a485940384a76055f3a9affb179 Mon Sep 17 00:00:00 2001 From: Damian Owsianny Date: Fri, 5 Apr 2024 17:10:47 +0200 Subject: [PATCH] Fix query comments test --- .changes/unreleased/Fixes-20240408-130646.yaml | 6 ++++++ tests/functional/adapter/query_comment/fixtures.py | 1 - .../functional/adapter/query_comment/test_query_comment.py | 2 -- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changes/unreleased/Fixes-20240408-130646.yaml diff --git a/.changes/unreleased/Fixes-20240408-130646.yaml b/.changes/unreleased/Fixes-20240408-130646.yaml new file mode 100644 index 00000000000..9aeaa94a27c --- /dev/null +++ b/.changes/unreleased/Fixes-20240408-130646.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: Fixed query comments test +time: 2024-04-08T13:06:46.648144+02:00 +custom: + Author: damian3031 + Issue: "9860" diff --git a/tests/functional/adapter/query_comment/fixtures.py b/tests/functional/adapter/query_comment/fixtures.py index d8848dc089e..ccaf329209c 100644 --- a/tests/functional/adapter/query_comment/fixtures.py +++ b/tests/functional/adapter/query_comment/fixtures.py @@ -10,7 +10,6 @@ {%- set comment_dict = dict( app='dbt++', macro_version='0.1.0', - dbt_version=dbt_version, message='blah: '~ message) -%} {{ return(comment_dict) }} {%- endmacro -%} diff --git a/tests/functional/adapter/query_comment/test_query_comment.py b/tests/functional/adapter/query_comment/test_query_comment.py index 18d66ffda7d..5651e54b39b 100644 --- a/tests/functional/adapter/query_comment/test_query_comment.py +++ b/tests/functional/adapter/query_comment/test_query_comment.py @@ -1,7 +1,6 @@ import pytest import json from dbt.exceptions import DbtRuntimeError -from dbt.version import __version__ as dbt_version from dbt.tests.util import run_dbt_and_capture from tests.functional.adapter.query_comment.fixtures import MACROS__MACRO_SQL, MODELS__X_SQL @@ -59,7 +58,6 @@ def test_matches_comment(self, project) -> bool: logs = self.run_get_json() expected_dct = { "app": "dbt++", - "dbt_version": dbt_version, "macro_version": "0.1.0", "message": f"blah: {project.adapter.config.target_name}", }