@@ -50,9 +50,7 @@ def setup_class(cls):
5050 # requires full bundle deployment to produce an interactive content type
5151 cls .content = cls .client .content .create (name = "example-flask-minimal" )
5252 # create bundle
53- path = Path (
54- "../../../../resources/connect/bundles/example-flask-minimal/bundle.tar.gz"
55- )
53+ path = Path ("../../../../resources/connect/bundles/example-flask-minimal/bundle.tar.gz" )
5654 path = (Path (__file__ ).parent / path ).resolve ()
5755 bundle = cls .content .bundles .create (str (path ))
5856 # deploy bundle
@@ -73,10 +71,7 @@ def teardown_class(cls):
7371 def test_find_by_integration (self ):
7472 associations = self .integration .associations .find ()
7573 assert len (associations ) == 1
76- assert (
77- associations [0 ]["oauth_integration_guid" ]
78- == self .integration ["guid" ]
79- )
74+ assert associations [0 ]["oauth_integration_guid" ] == self .integration ["guid" ]
8075
8176 no_associations = self .another_integration .associations .find ()
8277 assert len (no_associations ) == 0
@@ -85,22 +80,14 @@ def test_find_update_by_content(self):
8580 associations = self .content .oauth .associations .find ()
8681 assert len (associations ) == 1
8782 assert associations [0 ]["app_guid" ] == self .content ["guid" ]
88- assert (
89- associations [0 ]["oauth_integration_guid" ]
90- == self .integration ["guid" ]
91- )
83+ assert associations [0 ]["oauth_integration_guid" ] == self .integration ["guid" ]
9284
9385 # update content association to another_integration
94- self .content .oauth .associations .update (
95- self .another_integration ["guid" ]
96- )
86+ self .content .oauth .associations .update (self .another_integration ["guid" ])
9787 updated_associations = self .content .oauth .associations .find ()
9888 assert len (updated_associations ) == 1
9989 assert updated_associations [0 ]["app_guid" ] == self .content ["guid" ]
100- assert (
101- updated_associations [0 ]["oauth_integration_guid" ]
102- == self .another_integration .guid
103- )
90+ assert updated_associations [0 ]["oauth_integration_guid" ] == self .another_integration .guid
10491
10592 # unset content association
10693 self .content .oauth .associations .delete ()
0 commit comments