Skip to content

Commit 4b995e0

Browse files
committed
lint + install missing sqlalchemy library
1 parent 5a2de00 commit 4b995e0

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/integration.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
#----------------------------------------------
5151
- name: Install dependencies
5252
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
5454
#----------------------------------------------
5555
# install your root project, if required
5656
#----------------------------------------------

src/databricks/sqlalchemy/test_local/test_parsing.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,15 @@ def test_extract_3l_namespace_from_constraint_string():
5858

5959

6060
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`)"
6462

6563
with pytest.raises(DatabricksSqlAlchemyParseException):
6664
extract_three_level_identifier_from_constraint_string(input)
6765

6866

6967
@pytest.mark.parametrize("tschema", [None, "some_schema"])
7068
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`)"
7470

7571
result = build_fk_dict("some_fk_name", fk_constraint_string, schema_name=tschema)
7672

@@ -127,7 +123,9 @@ def test_build_pk_dict():
127123
],
128124
]
129125

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+
]
131129

132130

133131
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)