diff --git a/backend/tests/integration/test_large_uploads.py b/backend/tests/integration/test_large_uploads.py index 83b42b5..e18c7fc 100644 --- a/backend/tests/integration/test_large_uploads.py +++ b/backend/tests/integration/test_large_uploads.py @@ -12,6 +12,7 @@ Note: Large tests are marked with @pytest.mark.slow and will be skipped by default. Run with `pytest --run-slow` to include them. """ +import os import pytest import io import time @@ -512,7 +513,7 @@ class TestConcurrentUploads: content, expected_hash = sized_content(SIZE_100KB, seed=900 + idx) - base_url = "http://localhost:8080" + base_url = os.environ.get("ORCHARD_TEST_URL", "http://localhost:8080") with Client(base_url=base_url, timeout=30.0) as client: files = { "file": ( diff --git a/backend/tests/integration/test_upload_download_api.py b/backend/tests/integration/test_upload_download_api.py index 21b7284..936a4ca 100644 --- a/backend/tests/integration/test_upload_download_api.py +++ b/backend/tests/integration/test_upload_download_api.py @@ -10,6 +10,7 @@ Tests cover: - S3 storage verification """ +import os import pytest import io import threading @@ -540,7 +541,7 @@ class TestConcurrentUploads: try: from httpx import Client - base_url = "http://localhost:8080" + base_url = os.environ.get("ORCHARD_TEST_URL", "http://localhost:8080") with Client(base_url=base_url, timeout=30.0) as client: files = { "file": (