Skip to content

Commit

Permalink
attach the issue and apply skip
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Aug 10, 2023
1 parent da3f530 commit 5ab6f6e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/functional/adapter/query_comment_test/test_job_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from google.cloud.bigquery.client import Client

from dbt.tests.util import run_dbt_and_capture
from dbt.tests.util import run_dbt


_MACRO__BQ_LABELS = """
Expand Down Expand Up @@ -36,8 +36,15 @@ def project_config_update(self):
}
}

@pytest.mark.skip(
"This currently fails due to a known issue and will be resolved in a future sprint."
)
def test_query_comments_displays_as_job_labels(self, project):
results, logs = run_dbt_and_capture(["--debug", "run"])
"""
Addresses this regression in dbt-bigquery 1.6:
https://github.com/dbt-labs/dbt-bigquery/issues/863
"""
results = run_dbt(["run"])
job_id = results.results[0].adapter_response.get("job_id")
with project.adapter.connection_named("_test"):
client: Client = project.adapter.connections.get_thread_connection().handle
Expand Down

0 comments on commit 5ab6f6e

Please sign in to comment.