diff --git a/pyproject.toml b/pyproject.toml index a752b09d..edef39bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,3 +98,9 @@ reportExplicitAny = false allowedUntypedLibraries = ["langfuse"] reportImplicitOverride = false reportImportCycles = false + +[[tool.uv.index]] +name = "testpypi" +url = "https://test.pypi.org/simple/" +publish-url = "https://test.pypi.org/legacy/" +explicit = true diff --git a/tests/bench/harness.py b/tests/bench/harness.py index c4fbfa75..46819b29 100755 --- a/tests/bench/harness.py +++ b/tests/bench/harness.py @@ -552,14 +552,19 @@ except Exception as e: # Backup .env file to prevent it from overriding our environment variables self.backup_env_file() - # Copy .env file from tests/bench to the project root + # Copy .env file from tests/bench to the project root for FastAPI shutil.copy( - self.project_root / "tests" / "bench" / ".env", self.project_root + self.project_root / "tests" / "bench" / ".env", + self.project_root / ".env", ) # Create temporary docker-compose.yml self.create_temp_docker_compose() + # Create an empty .env file in temp directory to satisfy docker-compose + # (even though the database service doesn't actually use it) + (self.temp_dir / ".env").touch() + # Start database self.start_database()