From fd185576899a5c5f4626406e1d7867002238a6e4 Mon Sep 17 00:00:00 2001 From: Doug Beatty Date: Tue, 10 Dec 2024 15:57:14 -0700 Subject: [PATCH 1/2] `hard_deletes` config and `new_record` option for snapshots --- tests/functional/adapter/test_simple_snaphot.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/functional/adapter/test_simple_snaphot.py b/tests/functional/adapter/test_simple_snaphot.py index 50da51a76..92f56a5c9 100644 --- a/tests/functional/adapter/test_simple_snaphot.py +++ b/tests/functional/adapter/test_simple_snaphot.py @@ -6,6 +6,10 @@ BaseSimpleSnapshotBase, BaseSnapshotCheck, ) +from dbt.tests.adapter.simple_snapshot.new_record_mode import ( + SnapshotNewRecordMode, +) + SNAPSHOT_TIMESTAMP_SQL = """ {% snapshot snapshot %} @@ -101,3 +105,7 @@ def test_new_column_captured_by_snapshot(self, project): class TestSnapshotCheck(BaseSnapshotCheck): pass + + +class TestBigQuerySnapshotNewRecordMode(SnapshotNewRecordMode): + pass From 804d7b94eebe8b2a22415a996228c7505d4fa8b5 Mon Sep 17 00:00:00 2001 From: Doug Beatty Date: Tue, 10 Dec 2024 16:01:39 -0700 Subject: [PATCH 2/2] Fix spelling of file name --- .../adapter/{test_simple_snaphot.py => test_simple_snapshot.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tests/functional/adapter/{test_simple_snaphot.py => test_simple_snapshot.py} (100%) diff --git a/tests/functional/adapter/test_simple_snaphot.py b/tests/functional/adapter/test_simple_snapshot.py similarity index 100% rename from tests/functional/adapter/test_simple_snaphot.py rename to tests/functional/adapter/test_simple_snapshot.py