Skip to content

Commit

Permalink
missed a few
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein committed Nov 8, 2024
1 parent edb310d commit 3a79cd2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion integration/tests/posit/connect/oauth/test_associations.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ def test_find_update_by_content(self):
updated_associations = self.content.oauth.associations.find()
assert len(updated_associations) == 1
assert updated_associations[0]["app_guid"] == self.content["guid"]
assert updated_associations[0]["oauth_integration_guid"] == self.another_integration.guid
assert (
updated_associations[0]["oauth_integration_guid"] == self.another_integration["guid"]
)

# unset content association
self.content.oauth.associations.delete()
Expand Down
2 changes: 1 addition & 1 deletion integration/tests/posit/connect/oauth/test_integrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_create_update_delete(self):

created.update(name="updated integration name")
updated = self.client.oauth.integrations.get(integration["guid"])
assert updated.name == "updated integration name"
assert updated["name"] == "updated integration name"

# delete the new integration

Expand Down
4 changes: 3 additions & 1 deletion integration/tests/posit/connect/test_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@


class TestGroups:
@classmethod
def setup_class(cls):
cls.client = connect.Client()
cls.item = cls.client.groups.create(name="Friends")

@classmethod
def teardown_class(cls):
cls.item.delete()
assert cls.client.groups.count() == 0
Expand All @@ -14,7 +16,7 @@ def test_count(self):
assert self.client.groups.count() == 1

def test_get(self):
assert self.client.groups.get(self.item.guid)
assert self.client.groups.get(self.item["guid"])

def test_find(self):
assert self.client.groups.find() == [self.item]
Expand Down
2 changes: 1 addition & 1 deletion src/posit/connect/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class Group(Resource):
def delete(self) -> None:
"""Delete the group."""
path = f"v1/groups/{self.guid}"
path = f"v1/groups/{self['guid']}"
url = self.params.url + path
self.params.session.delete(url)

Expand Down

0 comments on commit 3a79cd2

Please sign in to comment.