Skip to content

Commit 3a79cd2

Browse files
committed
missed a few
1 parent edb310d commit 3a79cd2

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

integration/tests/posit/connect/oauth/test_associations.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ def test_find_update_by_content(self):
8787
updated_associations = self.content.oauth.associations.find()
8888
assert len(updated_associations) == 1
8989
assert updated_associations[0]["app_guid"] == self.content["guid"]
90-
assert updated_associations[0]["oauth_integration_guid"] == self.another_integration.guid
90+
assert (
91+
updated_associations[0]["oauth_integration_guid"] == self.another_integration["guid"]
92+
)
9193

9294
# unset content association
9395
self.content.oauth.associations.delete()

integration/tests/posit/connect/oauth/test_integrations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_create_update_delete(self):
8888

8989
created.update(name="updated integration name")
9090
updated = self.client.oauth.integrations.get(integration["guid"])
91-
assert updated.name == "updated integration name"
91+
assert updated["name"] == "updated integration name"
9292

9393
# delete the new integration
9494

integration/tests/posit/connect/test_groups.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33

44
class TestGroups:
5+
@classmethod
56
def setup_class(cls):
67
cls.client = connect.Client()
78
cls.item = cls.client.groups.create(name="Friends")
89

10+
@classmethod
911
def teardown_class(cls):
1012
cls.item.delete()
1113
assert cls.client.groups.count() == 0
@@ -14,7 +16,7 @@ def test_count(self):
1416
assert self.client.groups.count() == 1
1517

1618
def test_get(self):
17-
assert self.client.groups.get(self.item.guid)
19+
assert self.client.groups.get(self.item["guid"])
1820

1921
def test_find(self):
2022
assert self.client.groups.find() == [self.item]

src/posit/connect/groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class Group(Resource):
1515
def delete(self) -> None:
1616
"""Delete the group."""
17-
path = f"v1/groups/{self.guid}"
17+
path = f"v1/groups/{self['guid']}"
1818
url = self.params.url + path
1919
self.params.session.delete(url)
2020

0 commit comments

Comments
 (0)