From 39ef5fd3f5e2afe2a358e4fe0e3cda3365b25668 Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Thu, 28 Sep 2023 19:39:11 +0100 Subject: [PATCH] add dbt show tests (#611) * add dbt show tests * changelog entry * repoint to core main * change to a WITH statement in model definition for dbt_show test model * reuse core fixture for dbt show sql header test * undo dev-requirements changes --------- Co-authored-by: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com> Co-authored-by: Matthew McKnight <91097623+McKnight-42@users.noreply.github.com> Co-authored-by: Matthew McKnight (cherry picked from commit ca3c7b4f9e6b2df0ae6d2334edd58b6bb08a578e) --- .changes/unreleased/Under the Hood-20230925-150132.yaml | 6 ++++++ tests/functional/adapter/dbt_show/test_dbt_show.py | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 .changes/unreleased/Under the Hood-20230925-150132.yaml create mode 100644 tests/functional/adapter/dbt_show/test_dbt_show.py diff --git a/.changes/unreleased/Under the Hood-20230925-150132.yaml b/.changes/unreleased/Under the Hood-20230925-150132.yaml new file mode 100644 index 000000000..c61a28d56 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20230925-150132.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: Add tests for inlined limit + sql_header in dbt show query +time: 2023-09-25T15:01:32.025325+01:00 +custom: + Author: michelleark + Issue: "616" diff --git a/tests/functional/adapter/dbt_show/test_dbt_show.py b/tests/functional/adapter/dbt_show/test_dbt_show.py new file mode 100644 index 000000000..808a7733c --- /dev/null +++ b/tests/functional/adapter/dbt_show/test_dbt_show.py @@ -0,0 +1,9 @@ +from dbt.tests.adapter.dbt_show.test_dbt_show import BaseShowSqlHeader, BaseShowLimit + + +class TestRedshiftShowLimit(BaseShowLimit): + pass + + +class TestRedshiftShowSqlHeader(BaseShowSqlHeader): + pass