From ce596f208626d7f7c82519140b82de160fbd2ecf Mon Sep 17 00:00:00 2001 From: Mila Page <67295367+VersusFacit@users.noreply.github.com> Date: Wed, 3 Jul 2024 18:08:08 +0000 Subject: [PATCH] Base 207/add test (#1095) * Add test for upstream change * Change database message --------- Co-authored-by: Mila Page Co-authored-by: Mike Alfare Co-authored-by: Mike Alfare <13974384+mikealfare@users.noreply.github.com> --- tests/functional/adapter/dbt_show/test_dbt_show.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/functional/adapter/dbt_show/test_dbt_show.py b/tests/functional/adapter/dbt_show/test_dbt_show.py index c60a26aec..d12b91f52 100644 --- a/tests/functional/adapter/dbt_show/test_dbt_show.py +++ b/tests/functional/adapter/dbt_show/test_dbt_show.py @@ -1,9 +1,17 @@ -from dbt.tests.adapter.dbt_show.test_dbt_show import BaseShowSqlHeader, BaseShowLimit +from dbt.tests.adapter.dbt_show.test_dbt_show import ( + BaseShowSqlHeader, + BaseShowLimit, + BaseShowDoesNotHandleDoubleLimit, +) -class TestBigQueryShowLimit(BaseShowLimit): +class TestSnowflakeShowLimit(BaseShowLimit): pass -class TestBigQueryShowSqlHeader(BaseShowSqlHeader): +class TestSnowflakeShowSqlHeader(BaseShowSqlHeader): pass + + +class TestSnowflakeShowDoesNotHandleDoubleLimit(BaseShowDoesNotHandleDoubleLimit): + DATABASE_ERROR_MESSAGE = "unexpected 'limit'"