File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -290,9 +290,9 @@ class CheckRunAnnotation(models.GitHubCore):
290
290
CUSTOM_HEADERS = {"Accept" : "application/vnd.github.antiope-preview+json" }
291
291
292
292
def _repr (self ):
293
- return "<{s.class_name} [{s.path}:{s.start_line}-{s.end_line}]>" . format (
294
- s = self
295
- )
293
+ return (
294
+ "<{s.class_name} [{s.path}:{s.start_line}-{s.end_line}]>"
295
+ ). format ( s = self )
296
296
297
297
def _update_attributes (self , note ):
298
298
self .path = note ["path" ]
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def test_auto_trigger_checks_prefs(self):
69
69
json = repo .auto_trigger_checks (app_id , enabled = False )
70
70
for pref in json ["preferences" ]["auto_trigger_checks" ]:
71
71
if pref ["app_id" ] == app_id :
72
- assert pref ["setting" ] == False
72
+ assert not pref ["setting" ]
73
73
break
74
74
else :
75
75
pytest .fail (
@@ -79,7 +79,7 @@ def test_auto_trigger_checks_prefs(self):
79
79
json = repo .auto_trigger_checks (app_id , enabled = True )
80
80
for pref in json ["preferences" ]["auto_trigger_checks" ]:
81
81
if pref ["app_id" ] == app_id :
82
- assert pref ["setting" ] == True
82
+ assert pref ["setting" ]
83
83
break
84
84
else :
85
85
pytest .fail (
You can’t perform that action at this time.
0 commit comments