Upgrade the declarative pipeline for cleaner interface (#51)
This commit is contained in:
committed by
GitHub
parent
aab982ddc4
commit
9035e25666
@@ -13,3 +13,17 @@ def mock_google_search(monkeypatch):
|
||||
)
|
||||
|
||||
monkeypatch.setattr(googlesearch, "search", result)
|
||||
|
||||
|
||||
def if_haystack_not_installed():
|
||||
try:
|
||||
import haystack # noqa: F401
|
||||
except ImportError:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
|
||||
skip_when_haystack_not_installed = pytest.mark.skipif(
|
||||
if_haystack_not_installed(), reason="Haystack is not installed"
|
||||
)
|
||||
|
Reference in New Issue
Block a user