Skip to content

Commit 8b12a43

Browse files
fix: update associations update method to accept list of guids
1 parent ef3d299 commit 8b12a43

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def setup_class(cls):
7070
task = bundle.deploy()
7171
task.wait_for()
7272

73-
cls.content.oauth.associations.update(cls.integration["guid"])
73+
cls.content.oauth.associations.update([cls.integration["guid"]])
7474

7575
@classmethod
7676
def teardown_class(cls):
@@ -102,7 +102,7 @@ def test_find_update_by_content(self):
102102
assert associations[0]["oauth_integration_guid"] == self.integration["guid"]
103103

104104
# update content association to another_integration
105-
self.content.oauth.associations.update(self.another_integration["guid"])
105+
self.content.oauth.associations.update([self.another_integration["guid"]])
106106
updated_associations = self.content.oauth.associations.find()
107107
assert len(updated_associations) == 1
108108
assert updated_associations[0]["app_guid"] == self.content["guid"]

tests/posit/connect/oauth/test_associations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def test(self):
120120
c._ctx.version = None
121121

122122
# invoke
123-
c.content.get(guid).oauth.associations.update(new_integration_guid)
123+
c.content.get(guid).oauth.associations.update([new_integration_guid])
124124

125125
# assert
126126
assert mock_put.call_count == 1

0 commit comments

Comments
 (0)