Skip to content

Commit

Permalink
fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bindipankhudi committed May 10, 2024
1 parent d5fd4ef commit dd60874
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#

from typing import cast
from typing import cast, Optional
from unittest.mock import ANY, MagicMock, Mock, call, patch

from airbyte.strategies import WriteStrategy
Expand All @@ -18,7 +18,7 @@
)


def _create_snowflake_cortex_indexer(catalog:ConfiguredAirbyteCatalog | None = None ):
def _create_snowflake_cortex_indexer(catalog:Optional[ConfiguredAirbyteCatalog] ):
config = SnowflakeCortexIndexingModel(account="account", username="username", password="password", database="database", warehouse="warehouse", role="role")
with patch.object(SnowflakeCortexIndexer, '_init_db_connection', side_effect=None):
indexer = SnowflakeCortexIndexer(config, 3, Mock(ConfiguredAirbyteCatalog) if catalog is None else catalog)
Expand Down

0 comments on commit dd60874

Please sign in to comment.