-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c0b16f
commit d00cb37
Showing
4 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Under the Hood | ||
body: Add unit test for transaction semantics. | ||
time: 2024-02-27T01:04:28.713433-08:00 | ||
custom: | ||
Author: versusfacit | ||
Issue: "912" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from dbt.adapters.snowflake.relation import SnowflakeRelation | ||
from dbt.adapters.contracts.relation import RelationType | ||
|
||
|
||
def test_renameable_relation(): | ||
relation = SnowflakeRelation.create( | ||
database="my_db", | ||
schema="my_schema", | ||
identifier="my_table", | ||
type=RelationType.Table, | ||
) | ||
assert relation.renameable_relations == frozenset( | ||
{ | ||
SnowflakeRelationType.Table, | ||
SnowflakeRelationType.View, | ||
} | ||
) |