Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: Fix import order and function name in test_openai_api_key_e2e.py

LearningCircuita7a28bea5143
diff --git a/tests/test_openai_api_key_e2e.py b/tests/test_openai_api_key_e2e.py
index 9237f9bcac..aea1b2bd8c 100755
--- a/tests/test_openai_api_key_e2e.py
+++ b/tests/test_openai_api_key_e2e.py
@@ -23,12 +23,6 @@ import argparse
import os
import sys
from typing import Optional
-import pytest
-
-# Skip this entire module in pytest
-pytestmark = pytest.mark.skip(
- reason="End-to-end test script, not a pytest test"
-)
# Add project root to path
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
@@ -38,6 +32,12 @@ from local_deep_research.config.llm_config import get_llm
from local_deep_research.api.research_functions import quick_summary
from local_deep_research.settings import SettingsManager
from loguru import logger
+import pytest
+
+# Skip this entire module in pytest
+pytestmark = pytest.mark.skip(
+ reason="End-to-end test script, not a pytest test"
+)
def test_openai_api_key_e2e(
@@ -245,7 +245,7 @@ Note: The LDR server must be running and you must have a user account created.
logger.add(sys.stderr, level="ERROR") # Only show errors
# Run the test
- success = test_openai_api_key(
+ success = test_openai_api_key_e2e(
username=args.username, password=args.password, api_key=args.api_key
)