Skip to content

Commit

Permalink
Update integration repository update code
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke committed Dec 16, 2024
1 parent 01cebb0 commit d319c5b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions integration/tests/posit/connect/test_content_item_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from packaging import version

from posit import connect
from posit.connect.content import ContentItem, ContentItemRepository
from posit.connect._repository import ContentItemRepository
from posit.connect.content import ContentItem
from posit.connect.resources import _Resource

from . import CONNECT_VERSION
Expand Down Expand Up @@ -77,12 +78,12 @@ def assert_repo(r: ContentItemRepository):

# Update
ex_branch = "main"
updated_repo = content_repo.update(branch=ex_branch)
assert updated_repo["branch"] == ex_branch
content_repo.update(branch=ex_branch)
assert content_repo["branch"] == ex_branch

assert updated_repo["repository"] == self.repo_repository
assert updated_repo["directory"] == self.repo_directory
assert updated_repo["polling"] is self.repo_polling
assert content_repo["repository"] == self.repo_repository
assert content_repo["directory"] == self.repo_directory
assert content_repo["polling"] is self.repo_polling

# Delete
content_repo.destroy()
Expand Down

0 comments on commit d319c5b

Please sign in to comment.