Skip to content

Commit fb4f734

Browse files
Renaming
1 parent e4d3790 commit fb4f734

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
@@ -530,7 +530,7 @@ def content_create(self, name: str) -> ContentItemV1:
530530
response = self._server.handle_bad_response(response)
531531
return response
532532

533-
def content_upload_bundle(
533+
def upload_bundle(
534534
self, content_guid: str, tarball: typing.IO[bytes], metadata: Optional[dict[str, str]] = None
535535
) -> BundleMetadata:
536536
"""
@@ -664,7 +664,7 @@ def deploy(
664664
result = self._server.handle_bad_response(result)
665665
app["title"] = app_title
666666

667-
app_bundle = self.content_upload_bundle(app_guid, tarball, metadata=metadata)
667+
app_bundle = self.upload_bundle(app_guid, tarball, metadata=metadata)
668668

669669
task = self.content_deploy(app_guid, app_bundle["id"], activate=activate)
670670

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)