From e145986e102b41cf2ed566831576966ecfec69a9 Mon Sep 17 00:00:00 2001 From: Gerda Shank Date: Wed, 9 Oct 2024 12:10:42 -0400 Subject: [PATCH] Add test_simple_snapshot.py --- dev-requirements.txt | 6 ++-- .../adapter/test_simple_snapshot.py | 32 +++++++++++++++++++ 2 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 tests/functional/adapter/test_simple_snapshot.py diff --git a/dev-requirements.txt b/dev-requirements.txt index 34169172a..a86a7da8c 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,8 +1,8 @@ # install latest changes in dbt-core -git+https://github.com/dbt-labs/dbt-adapters.git -git+https://github.com/dbt-labs/dbt-adapters.git#subdirectory=dbt-tests-adapter +git+https://github.com/dbt-labs/dbt-adapters.git@test_various_snapshot_configs +git+https://github.com/dbt-labs/dbt-adapters.git@test_various_snapshot_configs#subdirectory=dbt-tests-adapter git+https://github.com/dbt-labs/dbt-common.git -git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-core&subdirectory=core +git+https://github.com/dbt-labs/dbt-core.git@snapshot_dbt_valid_to_current#egg=dbt-core&subdirectory=core # dev ddtrace==2.3.0 diff --git a/tests/functional/adapter/test_simple_snapshot.py b/tests/functional/adapter/test_simple_snapshot.py new file mode 100644 index 000000000..660678a99 --- /dev/null +++ b/tests/functional/adapter/test_simple_snapshot.py @@ -0,0 +1,32 @@ +from dbt.tests.adapter.simple_snapshot.test_snapshot import BaseSnapshotCheck, BaseSimpleSnapshot + +from dbt.tests.adapter.simple_snapshot.test_various_configs import ( + BaseSnapshotColumnNames, + BaseSnapshotColumnNamesFromDbtProject, + BaseSnapshotInvalidColumnNames, + BaseSnapshotDbtValidToCurrent, +) + + +class TestSnapshot(BaseSimpleSnapshot): + pass + + +class TestSnapshotCheck(BaseSnapshotCheck): + pass + + +class TestSnapshotColumnNames(BaseSnapshotColumnNames): + pass + + +class TestSnapshotColumnNamesFromDbtProject(BaseSnapshotColumnNamesFromDbtProject): + pass + + +class TestSnapshotInvalidColumnNames(BaseSnapshotInvalidColumnNames): + pass + + +class TestSnapshotDbtValidToCurrent(BaseSnapshotDbtValidToCurrent): + pass