feat(ci): Adds Integration Testing Against cloud-api (#1909)

Co-authored-by: Shubham Naik <shub@letta.com>
Co-authored-by: Shubham Naik <shub@memgpt.ai>
This commit is contained in:
Kian Jones
2025-05-08 11:28:41 -07:00
committed by GitHub
parent d9a03cd484
commit 3f47a8557c
3 changed files with 12 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ def run_server():
)
def client(request):
# Get URL from environment or start server
api_url = os.getenv("LETTA_API_URL")
server_url = os.getenv("LETTA_SERVER_URL", f"http://localhost:{SERVER_PORT}")
if not os.getenv("LETTA_SERVER_URL"):
print("Starting server thread")
@@ -44,8 +45,10 @@ def client(request):
wait_for_server(server_url)
print("Running client tests with server:", server_url)
# Overide the base_url if the LETTA_API_URL is set
base_url = api_url if api_url else server_url
# create the Letta client
yield Letta(base_url=server_url, token=None)
yield Letta(base_url=base_url, token=None)
# Fixture for test agent