Skip to content

Commit

Permalink
test: fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-salvi-apptware committed Dec 16, 2024
1 parent 612ffa4 commit a3160d3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ def stateful_source(mock_datahub_graph: DataHubGraph) -> Iterable[SnowflakeV2Sou
),
)

with mock.patch("snowflake.connector.connect"):
with mock.patch(
"datahub.sql_parsing.sql_parsing_aggregator.ToolMetaExtractor.create",
) as mock_checkpoint, mock.patch("snowflake.connector.connect"):
mock_checkpoint.return_value = mock.MagicMock()

yield SnowflakeV2Source(ctx=ctx, config=config)


Expand Down

0 comments on commit a3160d3

Please sign in to comment.