Skip to content

Commit

Permalink
Removed databricks-connect from test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Rodriguez Gutierrez <[email protected]>
  • Loading branch information
MigQ2 committed Oct 19, 2023
1 parent d9b80b0 commit 87e8378
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kedro-datasets/kedro_datasets/spark/spark_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ def _get_spark() -> Any:
# If the databricks-connect module is installed, we use a remote session
from databricks.connect import DatabricksSession

spark = DatabricksSession.builder.getOrCreate()
# We can't test this as there's no Databricks test env available
spark = DatabricksSession.builder.getOrCreate() # pragma: no cover

except ImportError:
# For "normal" spark sessions that don't use databricks-connect
Expand Down

0 comments on commit 87e8378

Please sign in to comment.