-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #323 from andreped/import-tests
Add regular and shortcut import tests
- Loading branch information
Showing
3 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
|
||
def test_regular_imports(): | ||
from vanna.anthropic.anthropic_chat import Anthropic_Chat | ||
from vanna.base.base import VannaBase | ||
from vanna.chromadb.chromadb_vector import ChromaDB_VectorStore | ||
from vanna.local import LocalContext_OpenAI | ||
from vanna.marqo.marqo import Marqo_VectorStore | ||
from vanna.mistral.mistral import Mistral | ||
from vanna.ollama.ollama import Ollama | ||
from vanna.openai.openai_chat import OpenAI_Chat | ||
from vanna.openai.openai_embeddings import OpenAI_Embeddings | ||
from vanna.remote import VannaDefault | ||
from vanna.vannadb.vannadb_vector import VannaDB_VectorStore | ||
from vanna.ZhipuAI.ZhipuAI_Chat import ZhipuAI_Chat | ||
from vanna.ZhipuAI.ZhipuAI_embeddings import ZhipuAI_Embeddings | ||
|
||
|
||
def test_shortcut_imports(): | ||
from vanna.anthropic import Anthropic_Chat | ||
from vanna.base import VannaBase | ||
from vanna.chromadb import ChromaDB_VectorStore | ||
from vanna.marqo import Marqo_VectorStore | ||
from vanna.mistral import Mistral | ||
from vanna.ollama import Ollama | ||
from vanna.openai import OpenAI_Chat, OpenAI_Embeddings | ||
from vanna.vannadb import VannaDB_VectorStore | ||
from vanna.ZhipuAI import ZhipuAI_Chat, ZhipuAI_Embeddings |