test default port

This commit is contained in:
phact 2025-12-19 02:05:22 -05:00
parent 320973a426
commit 359c2a3043
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
Integration tests for OpenRAG Python SDK.
These tests run against a real OpenRAG instance.
Requires: OPENRAG_URL environment variable (defaults to http://localhost:8000)
Requires: OPENRAG_URL environment variable (defaults to http://localhost:3000)
Run with: pytest sdks/python/tests/test_integration.py -v
"""
@ -21,7 +21,7 @@ pytestmark = pytest.mark.skipif(
# Module-level cache for API key (created once, reused)
_cached_api_key: str | None = None
_base_url = os.environ.get("OPENRAG_URL", "http://localhost:8000")
_base_url = os.environ.get("OPENRAG_URL", "http://localhost:3000")
def get_api_key() -> str:

View file

@ -2,7 +2,7 @@
* Integration tests for OpenRAG TypeScript SDK.
*
* These tests run against a real OpenRAG instance.
* Requires: OPENRAG_URL environment variable (defaults to http://localhost:8000)
* Requires: OPENRAG_URL environment variable (defaults to http://localhost:3000)
*
* Run with: npm test
*/
@ -15,7 +15,7 @@ import * as os from "os";
// Dynamic import to handle the SDK not being built yet
let OpenRAGClient: typeof import("../src").OpenRAGClient;
const BASE_URL = process.env.OPENRAG_URL || "http://localhost:8000";
const BASE_URL = process.env.OPENRAG_URL || "http://localhost:3000";
const SKIP_TESTS = process.env.SKIP_SDK_INTEGRATION_TESTS === "true";
// Create API key for tests