Fix failing unit tests by hard-coding model presence of expected search types

This commit is contained in:
Saba
2023-06-13 16:32:47 -07:00
parent 019d3732de
commit 3a61919344
2 changed files with 5 additions and 1 deletions

View File

@@ -159,6 +159,10 @@ def client(content_config: ContentConfig, search_config: SearchConfig, processor
state.config.search_type = search_config
state.SearchType = configure_search_types(state.config)
# These lines help us Mock the Search models for these search types
state.model.org_search = {}
state.model.image_search = {}
configure_routes(app)
return TestClient(app)