Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Sep 26, 2024
1 parent 4f497c6 commit 95f387a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion integrations/instructor_embedders/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ unfixable = [
]

[tool.ruff.lint.isort]
known-first-party = ["instructor_embedders"]
known-first-party = ["haystack_integrations"]

[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "parents"
Expand Down
14 changes: 8 additions & 6 deletions integrations/snowflake/tests/test_snowflake_table_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,11 @@ def test_to_dict_default(self, monkeypatch: MagicMock) -> None:

data = component.to_dict()

t = "haystack_integrations.components.retrievers.snowflake.snowflake_table_retriever.SnowflakeTableRetriever"

assert data == {
"type": t,
"type": (
"haystack_integrations.components.retrievers.snowflake."
"snowflake_table_retriever.SnowflakeTableRetriever"
),
"init_parameters": {
"api_key": {
"env_vars": ["SNOWFLAKE_API_KEY"],
Expand Down Expand Up @@ -511,10 +512,11 @@ def test_to_dict_with_parameters(self, monkeypatch: MagicMock) -> None:

data = component.to_dict()

t = "haystack_integrations.components.retrievers.snowflake.snowflake_table_retriever.SnowflakeTableRetriever"

assert data == {
"type": t,
"type": (
"haystack_integrations.components.retrievers.snowflake."
"snowflake_table_retriever.SnowflakeTableRetriever"
),
"init_parameters": {
"api_key": {
"env_vars": ["SNOWFLAKE_API_KEY"],
Expand Down

0 comments on commit 95f387a

Please sign in to comment.