Skip to content

Commit f65324f

Browse files
author
Jesse Whitehouse
committed
Add unit test for new method in _parse.py
Signed-off-by: Jesse Whitehouse <[email protected]>
1 parent 2aa5805 commit f65324f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/databricks/sqlalchemy/test_local/test_parsing.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
build_fk_dict,
77
build_pk_dict,
88
match_dte_rows_by_value,
9+
get_comment_from_dte_output,
910
DatabricksSqlAlchemyParseException,
1011
)
1112

@@ -105,6 +106,7 @@ def test_build_pk_dict():
105106
["Type", "MANAGED"],
106107
["Location", "s3://us-west-2-****-/19a85dee-****/tables/ccb7***"],
107108
["Provider", "delta"],
109+
["Comment", "some comment"],
108110
["Owner", "[email protected]"],
109111
["Is_managed_location", "true"],
110112
["Predictive Optimization", "ENABLE (inherited from CATALOG main)"],
@@ -152,3 +154,7 @@ def test_build_pk_dict():
152154
def test_filter_dict_by_value(match, output):
153155
result = match_dte_rows_by_value(FMT_SAMPLE_DT_OUTPUT, match)
154156
assert result == output
157+
158+
159+
def test_get_comment_from_dte_output():
160+
assert get_comment_from_dte_output(FMT_SAMPLE_DT_OUTPUT) == "some comment"

0 commit comments

Comments
 (0)