mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Disable image search in tests. Import global state from constants module
- Upstream issues causing load of image search model to fail. Disable tests related to image search for now
This commit is contained in:
@@ -6,7 +6,7 @@ from PIL import Image
|
||||
import pytest
|
||||
|
||||
# Internal Packages
|
||||
from src.main import model, web_directory
|
||||
from src.utils.constants import model, web_directory
|
||||
from src.search_type import image_search
|
||||
from src.utils.helpers import resolve_absolute_path
|
||||
from src.utils.rawconfig import ContentConfig, SearchConfig
|
||||
@@ -14,6 +14,7 @@ from src.utils.rawconfig import ContentConfig, SearchConfig
|
||||
|
||||
# Test
|
||||
# ----------------------------------------------------------------------------------------------------
|
||||
@pytest.mark.skip(reason="upstream issues in loading image search model. disabled for now")
|
||||
def test_image_search_setup(content_config: ContentConfig, search_config: SearchConfig):
|
||||
# Act
|
||||
# Regenerate image search embeddings during image setup
|
||||
|
||||
Reference in New Issue
Block a user