Skip to content

Commit

Permalink
Fix query comments test (#9861)
Browse files Browse the repository at this point in the history
  • Loading branch information
damian3031 authored Apr 17, 2024
1 parent fe28d9e commit 668fe78
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20240408-130646.yaml
Original file line number Diff line number Diff line change
@@ -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"
1 change: 0 additions & 1 deletion tests/functional/adapter/query_comment/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down
2 changes: 0 additions & 2 deletions tests/functional/adapter/query_comment/test_query_comment.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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}",
}
Expand Down

0 comments on commit 668fe78

Please sign in to comment.