mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Fix to run new automation api tests in ci
This commit is contained in:
@@ -10,9 +10,9 @@ from tests.helpers import ConversationFactory, generate_chat_history, get_chat_a
|
||||
|
||||
# Initialize variables for tests
|
||||
api_key = get_chat_api_key()
|
||||
if api_key is None:
|
||||
if api_key is None or not os.getenv("KHOJ_TEST_CHAT_PROVIDER"):
|
||||
pytest.skip(
|
||||
reason="Set OPENAI_API_KEY environment variable to run tests below. Get OpenAI API key from https://platform.openai.com/account/api-keys",
|
||||
reason="Set OPENAI_API_KEY, GEMINI_API_KEY or ANTHROPIC_API_KEY environment variable to run tests below.",
|
||||
allow_module_level=True,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user