Skip to content

Commit 95d35e9

Browse files
Renaming
1 parent cba9af8 commit 95d35e9

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

rsconnect/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def content_create(self, name: str) -> ContentItemV1:
517517
response = self._server.handle_bad_response(response)
518518
return response
519519

520-
def content_upload_bundle(
520+
def upload_bundle(
521521
self, content_guid: str, tarball: typing.IO[bytes], metadata: Optional[dict[str, str]] = None
522522
) -> BundleMetadata:
523523
"""
@@ -651,7 +651,7 @@ def deploy(
651651
result = self._server.handle_bad_response(result)
652652
app["title"] = app_title
653653

654-
app_bundle = self.content_upload_bundle(app_guid, tarball, metadata=metadata)
654+
app_bundle = self.upload_bundle(app_guid, tarball, metadata=metadata)
655655

656656
task = self.content_deploy(app_guid, app_bundle["id"], activate=activate)
657657

tests/test_git_metadata.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ def git_repo(self):
5656
test_file = Path(tmpdir) / "test.txt"
5757
test_file.write_text("test content")
5858
subprocess.run(["git", "add", "."], cwd=tmpdir, check=True, capture_output=True)
59-
subprocess.run(
60-
["git", "commit", "-m", "Initial commit"], cwd=tmpdir, check=True, capture_output=True
61-
)
59+
subprocess.run(["git", "commit", "-m", "Initial commit"], cwd=tmpdir, check=True, capture_output=True)
6260

6361
# Add a remote
6462
subprocess.run(
@@ -243,12 +241,12 @@ def test_prepare_metadata_cli_clears_value(self, temp_git_repo):
243241
class TestIntegration:
244242
"""Integration tests for the full workflow."""
245243

246-
def test_app_upload_signature_accepts_metadata(self):
247-
"""Test that app_upload accepts metadata parameter."""
244+
def test_upload_bundle_signature_accepts_metadata(self):
245+
"""Test that upload_bundle accepts metadata parameter."""
248246
from inspect import signature
249247

250248
from rsconnect.api import RSConnectClient
251249

252-
# Check that app_upload has metadata parameter
253-
sig = signature(RSConnectClient.app_upload)
250+
# Check that upload_bundle has metadata parameter
251+
sig = signature(RSConnectClient.upload_bundle)
254252
assert "metadata" in sig.parameters

0 commit comments

Comments
 (0)