Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
igiloh-pinecone committed Oct 24, 2023
1 parent eecc77a commit f48cb12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/utils/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

DEFAULT_COFIG_PATH = 'config/config.yaml'


def test_list_supported_classes():
supported_chunkers = BaseStubChunker.list_supported_types()
assert len(supported_chunkers) == 2
Expand Down Expand Up @@ -362,7 +363,7 @@ def test_default_config_matches_code_defaults(temp_index_name):
default_chat_engine = ChatEngine(default_context_engine)

def assert_identical_components(loaded_component, default_component):
assert type(loaded_component) == type(default_component)
assert type(loaded_component) == type(default_component) # noqa: E721
if not loaded_component.__module__.startswith("resin"):
return

Expand All @@ -376,6 +377,6 @@ def assert_identical_components(loaded_component, default_component):
assert getattr(loaded_component, key) == value, (
f"Attribute {key} in {type(loaded_component)} is {value} in code "
f"but {getattr(loaded_component, key)} in config"
)
)

assert_identical_components(loaded_chat_engine, default_chat_engine)

0 comments on commit f48cb12

Please sign in to comment.