From bb38f3bb31cfea59cd070af6a60ed574be2a7e90 Mon Sep 17 00:00:00 2001 From: Quigley Malcolm Date: Mon, 21 Oct 2024 20:02:20 -0500 Subject: [PATCH] Support updated/new microbatch tests provided by dbt-tests-adapter --- .../incremental/test_incremental_microbatch.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/functional/adapter/incremental/test_incremental_microbatch.py b/tests/functional/adapter/incremental/test_incremental_microbatch.py index 1338bb3b0..b44983c81 100644 --- a/tests/functional/adapter/incremental/test_incremental_microbatch.py +++ b/tests/functional/adapter/incremental/test_incremental_microbatch.py @@ -4,7 +4,8 @@ from dbt.tests.util import run_dbt_and_capture from dbt.tests.adapter.incremental.test_incremental_microbatch import ( - BaseMicrobatch, + BaseTestMicrobatchOn, + BaseTestMicrobatchOff, patch_microbatch_end_time, ) @@ -16,7 +17,13 @@ ) -class TestBigQueryMicrobatch(BaseMicrobatch): +class TestBigQueryMicrobatchOn(BaseTestMicrobatchOn): + @pytest.fixture(scope="class") + def microbatch_model_sql(self) -> str: + return microbatch_model_no_unique_id_sql + + +class TestBigQueryMicrobatchOff(BaseTestMicrobatchOff): @pytest.fixture(scope="class") def microbatch_model_sql(self) -> str: return microbatch_model_no_unique_id_sql