Skip to content

Commit

Permalink
Support updated/new microbatch tests provided by dbt-tests-adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
QMalcolm committed Oct 22, 2024
1 parent 2ee4fd0 commit bb38f3b
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand All @@ -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
Expand Down

0 comments on commit bb38f3b

Please sign in to comment.