File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 8
8
dist /
9
9
* .egg-info /
10
10
.coverage
11
+ htmlcov /
Original file line number Diff line number Diff line change @@ -184,13 +184,15 @@ def test_authorization(self):
184
184
with expect .raises (github3 .GitHubError ):
185
185
self .g .authorization (1000 )
186
186
187
- if self .auth :
188
- auth = self .g .authorize (self .user , self .pw , [])
189
- expect (auth ).isinstance (github3 .github .Authorization )
190
- auth_g = self ._g .authorization (auth .id )
191
- expect (auth_g ).isinstance (github3 .github .Authorization )
192
- auth .delete ()
193
- del auth
194
- auth = self ._g .authorize (None , None , [])
195
- expect (auth ).isinstance (github3 .github .Authorization )
196
- auth .delete ()
187
+ if not self .auth :
188
+ return
189
+
190
+ auth = self .g .authorize (self .user , self .pw , [])
191
+ expect (auth ).isinstance (github3 .github .Authorization )
192
+ auth_g = self ._g .authorization (auth .id )
193
+ expect (auth_g ).isinstance (github3 .github .Authorization )
194
+ auth .delete ()
195
+ del auth
196
+ auth = self ._g .authorize (None , None , [])
197
+ expect (auth ).isinstance (github3 .github .Authorization )
198
+ auth .delete ()
You can’t perform that action at this time.
0 commit comments