Skip to content

Commit

Permalink
Fix conf test setup for offline chat
Browse files Browse the repository at this point in the history
  • Loading branch information
sabaimran committed Sep 18, 2023
1 parent 2dd15e9 commit 96a9fa0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ def client(content_config: ContentConfig, search_config: SearchConfig, processor

@pytest.fixture(scope="function")
def client_offline_chat(
search_config: SearchConfig, processor_config_offline_chat: ProcessorConfig, content_config: ContentConfig
search_config: SearchConfig,
processor_config_offline_chat: ProcessorConfig,
content_config: ContentConfig,
md_content_config,
):
# Initialize app state
state.config.content_type = md_content_config
Expand All @@ -280,7 +283,7 @@ def client_offline_chat(
state.search_models.text_search = text_search.initialize_model(search_config.asymmetric)
state.search_models.image_search = image_search.initialize_model(search_config.image)

all_files = fs_syncer.collect_files(content_config.content_type)
all_files = fs_syncer.collect_files(state.config.content_type)
state.content_index = configure_content(
state.content_index, state.config.content_type, all_files, state.search_models
)
Expand Down

0 comments on commit 96a9fa0

Please sign in to comment.