File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
integration/tests/posit/connect Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 22
33
44class 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 ]
Original file line number Diff line number Diff line change 1414class 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
You can’t perform that action at this time.
0 commit comments