haystack/test/test_imports.py

20 lines
823 B
Python
Raw Normal View History

2020-04-27 12:54:12 -07:00
def test_module_imports():
from haystack import Finder
from haystack.database.sql import SQLDocumentStore
from haystack.indexing.cleaning import clean_wiki_text
from haystack.indexing.io import write_documents_to_db, fetch_archive_from_http
from haystack.reader.farm import FARMReader
from haystack.reader.transformers import TransformersReader
from haystack.retriever.tfidf import TfidfRetriever
from haystack.utils import print_answers
assert Finder is not None
assert SQLDocumentStore is not None
assert clean_wiki_text is not None
assert write_documents_to_db is not None
assert fetch_archive_from_http is not None
assert FARMReader is not None
assert TransformersReader is not None
assert TfidfRetriever is not None
assert print_answers is not None