mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-01 04:13:26 +00:00
17 lines
417 B
Python
17 lines
417 B
Python
from unittest.mock import MagicMock
|
|
|
|
import pytest
|
|
from canals.testing import BaseTestComponent as CanalsBaseTestComponent
|
|
|
|
|
|
class BaseTestComponent(CanalsBaseTestComponent):
|
|
"""
|
|
Base tests for Haystack components.
|
|
"""
|
|
|
|
@pytest.fixture
|
|
def request_mock(self, monkeypatch):
|
|
request_mock = MagicMock()
|
|
monkeypatch.setattr("requests.request", MagicMock())
|
|
return request_mock
|