Skip to content

Commit d319c5b

Browse files
committed
Update integration repository update code
1 parent 01cebb0 commit d319c5b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

integration/tests/posit/connect/test_content_item_repository.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
from packaging import version
33

44
from posit import connect
5-
from posit.connect.content import ContentItem, ContentItemRepository
5+
from posit.connect._repository import ContentItemRepository
6+
from posit.connect.content import ContentItem
67
from posit.connect.resources import _Resource
78

89
from . import CONNECT_VERSION
@@ -77,12 +78,12 @@ def assert_repo(r: ContentItemRepository):
7778

7879
# Update
7980
ex_branch = "main"
80-
updated_repo = content_repo.update(branch=ex_branch)
81-
assert updated_repo["branch"] == ex_branch
81+
content_repo.update(branch=ex_branch)
82+
assert content_repo["branch"] == ex_branch
8283

83-
assert updated_repo["repository"] == self.repo_repository
84-
assert updated_repo["directory"] == self.repo_directory
85-
assert updated_repo["polling"] is self.repo_polling
84+
assert content_repo["repository"] == self.repo_repository
85+
assert content_repo["directory"] == self.repo_directory
86+
assert content_repo["polling"] is self.repo_polling
8687

8788
# Delete
8889
content_repo.destroy()

0 commit comments

Comments
 (0)