Skip to content

Commit 7423dd7

Browse files
committed
Reformatted code.
1 parent 1e7599e commit 7423dd7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

codebender_testing/disqus.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,18 @@ def update_comment(self, sketch, results, current_date, log_entry, openFailFlag,
7171
if library_match:
7272
library = library_match.group(1)
7373

74-
#Check if the currently compiled example belongs to the same library as the previous one.
74+
# Check if the currently compiled example belongs to the same library as the previous one.
7575
# To do so we check if value of library is the same with self.last library value which is updated
7676
# every time that we log the results of a compiled example.
7777
if library != self.last_library:
7878
library_to_comment = library
7979

80-
#Check if we should add a comment to the library.
80+
# Check if we should add a comment to the library.
8181
if library_to_comment and library not in self.examples_without_library:
8282
log_entry = self.handle_library_comment(library_to_comment, current_date, log_entry)
8383

8484
self.last_library = library
85-
#Add a comment to the currently compiled library example.
85+
# Add a comment to the currently compiled library example.
8686
if not openFailFlag:
8787
log_entry = self.handle_example_comment(sketch, results, current_date, log_entry)
8888

@@ -112,21 +112,21 @@ def handle_library_comment(self, library, current_date, log, examples=True):
112112
comment_updated = False
113113

114114
new_message = self.messages['library'].replace('TEST_DATE', current_date)
115-
if examples==False:
115+
if examples == False:
116116
new_message = self.messages['library_no_examples'].replace('TEST_DATE', current_date)
117117

118118
for thread in paginator:
119119

120120
# Check if library has already a comment.
121121
post_id, existing_message = self.get_posts(thread['id'])
122122

123-
#If library already has a comment, update it.
123+
# If library already has a comment, update it.
124124
if post_id and existing_message:
125125
log[url]['comment'] = self.update_post(post_id, new_message)
126126
comment_updated = True
127127
break
128128

129-
#If library doesn't have a comment, create it.
129+
# If library doesn't have a comment, create it.
130130
if not comment_updated:
131131
log[url]['comment'] = self.create_post(identifier, new_message)
132132

codebender_testing/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def open_all_libraries_and_examples(self, url, logfile):
550550
url_name = url.split('/')[-1]
551551
name = self.get_element(By.CSS_SELECTOR, '#mycontainer h1 small').text
552552
name = re.sub('[()]', '', name).split('.')[0]
553-
if (name != url_name):
553+
if name != url_name:
554554
print "Didn't open url: ", url
555555

556556
test_status = True

0 commit comments

Comments
 (0)