File tree 2 files changed +6
-8
lines changed
src/databricks/sqlalchemy/test_local
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 50
50
# ----------------------------------------------
51
51
- name : Install dependencies
52
52
if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
53
- run : poetry install --no-interaction --no-root
53
+ run : poetry install --no-interaction --no-root --all-extras
54
54
# ----------------------------------------------
55
55
# install your root project, if required
56
56
# ----------------------------------------------
Original file line number Diff line number Diff line change @@ -58,19 +58,15 @@ def test_extract_3l_namespace_from_constraint_string():
58
58
59
59
60
60
def test_extract_3l_namespace_from_bad_constraint_string ():
61
- input = (
62
- "FOREIGN KEY (`parent_user_id`) REFERENCES `pysql_dialect_compliance`.`users` (`user_id`)"
63
- )
61
+ input = "FOREIGN KEY (`parent_user_id`) REFERENCES `pysql_dialect_compliance`.`users` (`user_id`)"
64
62
65
63
with pytest .raises (DatabricksSqlAlchemyParseException ):
66
64
extract_three_level_identifier_from_constraint_string (input )
67
65
68
66
69
67
@pytest .mark .parametrize ("tschema" , [None , "some_schema" ])
70
68
def test_build_fk_dict (tschema ):
71
- fk_constraint_string = (
72
- "FOREIGN KEY (`parent_user_id`) REFERENCES `main`.`some_schema`.`users` (`user_id`)"
73
- )
69
+ fk_constraint_string = "FOREIGN KEY (`parent_user_id`) REFERENCES `main`.`some_schema`.`users` (`user_id`)"
74
70
75
71
result = build_fk_dict ("some_fk_name" , fk_constraint_string , schema_name = tschema )
76
72
@@ -127,7 +123,9 @@ def test_build_pk_dict():
127
123
],
128
124
]
129
125
130
- FMT_SAMPLE_DT_OUTPUT = [{"col_name" : i [0 ], "data_type" : i [1 ]} for i in RAW_SAMPLE_DTE_OUTPUT ]
126
+ FMT_SAMPLE_DT_OUTPUT = [
127
+ {"col_name" : i [0 ], "data_type" : i [1 ]} for i in RAW_SAMPLE_DTE_OUTPUT
128
+ ]
131
129
132
130
133
131
@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments