mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
79913d4c17
* Apply isort to the entire repository * Fix missing import issues in text_to_entries * Fix imports in migration files
15 lines
472 B
Python
15 lines
472 B
Python
import pytest
|
|
|
|
from khoj.utils.rawconfig import ImageContentConfig, TextContentConfig
|
|
|
|
|
|
# Test
|
|
# ----------------------------------------------------------------------------------------------------
|
|
def test_input_filter_or_directories_required_in_image_content_config():
|
|
# Act
|
|
with pytest.raises(ValueError):
|
|
ImageContentConfig(
|
|
input_directories=None,
|
|
input_filter=None,
|
|
embeddings_file="note_embeddings.pt",
|
|
)
|