From f11abbeed3ecc90a1af5c3137411aa832350f24d Mon Sep 17 00:00:00 2001
From: Luke Piette <43227226+lukepiette@users.noreply.github.com>
Date: Wed, 11 Jun 2025 16:46:23 -0700
Subject: [PATCH 1/2] Update README.md - Runpod name
---
README.md | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index fcbb8c52..b04c86a9 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@
-
RunPod | Python Library
+Runpod | Python Library
[](https://badge.fury.io/py/runpod)
[](https://pepy.tech/project/runpod)
-[](https://github.com/runpod/runpod-python/actions/workflows/CI-e2e.yml)
+[](https://github.com/runpod/runpod-python/actions/workflows/CI-e2e.yml)
[](https://github.com/runpod/runpod-python/actions/workflows/CI-pylint.yml)
@@ -15,7 +15,7 @@
-Welcome to the official Python library for RunPod API & SDK.
+Welcome to the official Python library for Runpod API & SDK.
## Table of Contents
@@ -46,11 +46,11 @@ pip install git+https://github.com/runpod/runpod-python.git
## ⚡ | Serverless Worker (SDK)
-This python package can also be used to create a serverless worker that can be deployed to RunPod as a custom endpoint API.
+This python package can also be used to create a serverless worker that can be deployed to Runpod as a custom endpoint API.
### Quick Start
-Create a python script in your project that contains your model definition and the RunPod worker start code. Run this python code as your default container start command:
+Create a python script in your project that contains your model definition and the Runpod worker start code. Run this python code as your default container start command:
```python
# my_worker.py
@@ -79,7 +79,7 @@ See our [blog post](https://www.runpod.io/blog/serverless-create-a-basic-api) fo
### Local Test Worker
-You can also test your worker locally before deploying it to RunPod. This is useful for debugging and testing.
+You can also test your worker locally before deploying it to Runpod. This is useful for debugging and testing.
```bash
python my_worker.py --rp_serve_api
@@ -87,7 +87,7 @@ python my_worker.py --rp_serve_api
## 📚 | API Language Library (GraphQL Wrapper)
-When interacting with the RunPod API you can use this library to make requests to the API.
+When interacting with the Runpod API you can use this library to make requests to the API.
```python
import runpod
From 876a0943bb636add5fb314ed62046500e6f25776 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dean=20Qui=C3=B1anola?=
Date: Wed, 11 Jun 2025 23:56:04 -0700
Subject: [PATCH 2/2] fix: broken tests
---
tests/test_cli/test_cli_groups/test_config_commands.py | 8 +++++++-
tests/test_cli/test_cli_groups/test_exec_commands.py | 7 +++----
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/tests/test_cli/test_cli_groups/test_config_commands.py b/tests/test_cli/test_cli_groups/test_config_commands.py
index d9dbe3ba..70959cc0 100644
--- a/tests/test_cli/test_cli_groups/test_config_commands.py
+++ b/tests/test_cli/test_cli_groups/test_config_commands.py
@@ -100,9 +100,15 @@ def test_output_messages(self):
def test_api_key_prompt(self):
"""Tests the API key prompt."""
- with patch("click.prompt", return_value="KEY") as mock_prompt:
+ with patch("click.prompt", return_value="KEY") as mock_prompt, patch(
+ "runpod.cli.groups.config.commands.set_credentials"
+ ) as mock_set_credentials, patch(
+ "runpod.cli.groups.config.commands.check_credentials",
+ return_value=(False, None)
+ ):
result = self.runner.invoke(runpod_cli, ["config", "--profile", "test"])
mock_prompt.assert_called_with(
" > RunPod API Key", hide_input=False, confirmation_prompt=False
) # pylint: disable=line-too-long
+ mock_set_credentials.assert_called_with("KEY", "test", overwrite=True)
assert result.exit_code == 0
diff --git a/tests/test_cli/test_cli_groups/test_exec_commands.py b/tests/test_cli/test_cli_groups/test_exec_commands.py
index 9b04528e..d8a0edf6 100644
--- a/tests/test_cli/test_cli_groups/test_exec_commands.py
+++ b/tests/test_cli/test_cli_groups/test_exec_commands.py
@@ -7,14 +7,15 @@
from unittest.mock import patch
import click
+from click.testing import CliRunner
from runpod.cli.entry import runpod_cli
class TestExecCommands(unittest.TestCase):
"""Tests for Runpod CLI exec commands."""
-
def setUp(self):
+ self.runner = CliRunner()
self.runner = click.testing.CliRunner()
def test_remote_python_with_provided_pod_id(self):
@@ -49,9 +50,7 @@ def test_remote_python_without_provided_pod_id_prompt(self):
"runpod.cli.groups.exec.commands.python_over_ssh"
) as mock_python_over_ssh, patch(
"runpod.cli.groups.exec.commands.get_session_pod",
- side_effect=lambda: click.prompt(
- "Please provide the pod ID", "prompted_pod_id"
- ),
+ return_value="prompted_pod_id",
) as mock_get_pod_id: # pylint: disable=line-too-long
mock_python_over_ssh.return_value = None
result = self.runner.invoke(runpod_cli, ["exec", "python", temp_file.name])