Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test various snapshot configs #154

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ path = "dbt/adapters/postgres/__version__.py"

[tool.hatch.envs.default]
dependencies = [
"dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git",
"dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git@test_various_snapshot_configs",
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git",
"dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git#subdirectory=dbt-tests-adapter",
"dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git@test_various_snapshot_configs#subdirectory=dbt-tests-adapter",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core",
"pre-commit==3.7.0",
"freezegun",
Expand Down
23 changes: 23 additions & 0 deletions tests/functional/adapter/test_simple_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,33 @@
BaseSnapshotCheck,
)

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
Loading