mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-08-03 13:43:18 +02:00
* Sharepoint connector fixes * Refactor sharepoint to be better * Improve env variable naming * Fix * Add new secrets * Fix unstructured failure
15 lines
364 B
Python
15 lines
364 B
Python
from collections.abc import Generator
|
|
from unittest.mock import MagicMock
|
|
from unittest.mock import patch
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture
|
|
def mock_get_unstructured_api_key() -> Generator[MagicMock, None, None]:
|
|
with patch(
|
|
"onyx.file_processing.extract_file_text.get_unstructured_api_key",
|
|
return_value=None,
|
|
) as mock:
|
|
yield mock
|