From 87c52d5b9aa3da96d892d636f7e7d2618ba1cd6e Mon Sep 17 00:00:00 2001 From: Gerda Shank Date: Wed, 9 Oct 2024 11:59:08 -0400 Subject: [PATCH] Various snapshot tests --- dev-requirements.txt | 8 +++---- .../adapter/test_simple_snapshot.py | 23 +++++++++++++++++++ 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index a325366f4..7b0549064 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,9 +1,9 @@ # install latest changes in dbt-core + dbt-postgres -git+https://github.com/dbt-labs/dbt-core.git#subdirectory=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-core.git@snapshot_dbt_valid_to_current#subdirectory=core +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-postgres.git@snapshot_dbt_valid_to_current +git+https://github.com/dbt-labs/dbt-postgres.git@test_various_snapshot_configs # dev ipdb~=0.13.13 diff --git a/tests/functional/adapter/test_simple_snapshot.py b/tests/functional/adapter/test_simple_snapshot.py index 4db5b2330..660678a99 100644 --- a/tests/functional/adapter/test_simple_snapshot.py +++ b/tests/functional/adapter/test_simple_snapshot.py @@ -1,5 +1,12 @@ 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 @@ -7,3 +14,19 @@ class TestSnapshot(BaseSimpleSnapshot): class TestSnapshotCheck(BaseSnapshotCheck): pass + + +class TestSnapshotColumnNames(BaseSnapshotColumnNames): + pass + + +class TestSnapshotColumnNamesFromDbtProject(BaseSnapshotColumnNamesFromDbtProject): + pass + + +class TestSnapshotInvalidColumnNames(BaseSnapshotInvalidColumnNames): + pass + + +class TestSnapshotDbtValidToCurrent(BaseSnapshotDbtValidToCurrent): + pass