-
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.
Browse files
Browse the repository at this point in the history
* Add test and move semantics * Add FrozenSet to imports * Tweak test failures * remove extra semicolon --------- Co-authored-by: Mila Page <[email protected]> Co-authored-by: Mike Alfare <[email protected]> Co-authored-by: Mike Alfare <[email protected]> (cherry picked from commit 73b6a12) Co-authored-by: Mila Page <[email protected]> Co-authored-by: Mike Alfare <[email protected]>
- Loading branch information
1 parent
b532809
commit bdc975e
Showing
4 changed files
with
42 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,5 @@ | |
as ( | ||
{{ sql }} | ||
) | ||
; | ||
|
||
{%- endmacro %} |
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.snowflake.relation_configs import SnowflakeRelationType | ||
|
||
|
||
def test_renameable_relation(): | ||
relation = SnowflakeRelation.create( | ||
database="my_db", | ||
schema="my_schema", | ||
identifier="my_table", | ||
type=SnowflakeRelationType.Table, | ||
) | ||
assert relation.renameable_relations == frozenset( | ||
{ | ||
SnowflakeRelationType.Table, | ||
SnowflakeRelationType.View, | ||
} | ||
) |