@@ -57,15 +57,6 @@ def setup_class(cls):
5757 },
5858 )
5959
60- cls .connect_integration = cls .client .oauth .integrations .create (
61- name = "connect integration" ,
62- description = "a connect description" ,
63- template = "connect" ,
64- config = {
65- "max_role" : "admin" ,
66- },
67- )
68-
6960 # create content
7061 # requires full bundle deployment to produce an interactive content type
7162 cls .content = cls .client .content .create (name = "example-flask-minimal" )
@@ -86,7 +77,6 @@ def teardown_class(cls):
8677 # Destroy created integrations.
8778 cls .integration .delete ()
8879 cls .another_integration .delete ()
89- cls .connect_integration .delete ()
9080
9181 # Assert that no integrations exist
9282 assert len (cls .client .oauth .integrations .find ()) == 0
@@ -144,26 +134,24 @@ def test_find_update_by_content_multiple(self):
144134 [
145135 self .integration ["guid" ],
146136 self .another_integration ["guid" ],
147- self .connect_integration ["guid" ],
148137 ]
149138 )
150139 updated_associations = self .content .oauth .associations .find ()
151- assert len (updated_associations ) == 3
140+ assert len (updated_associations ) == 2
152141 for assoc in updated_associations :
153142 assert assoc ["app_guid" ] == self .content ["guid" ]
154143 assert assoc ["oauth_integration_guid" ] in [
155144 self .integration ["guid" ],
156145 self .another_integration ["guid" ],
157- self .connect_integration ["guid" ],
158146 ]
159147
160148 associated_connect_integration = self .content .oauth .associations .find_by (
161- name = "connect integration "
149+ name = ".*another.* "
162150 )
163151 assert associated_connect_integration is not None
164152 assert (
165153 associated_connect_integration ["oauth_integration_guid" ]
166- == self .connect_integration ["guid" ]
154+ == self .another_integration ["guid" ]
167155 )
168156
169157 # unset content association
0 commit comments