Skip to content

Commit a49a574

Browse files
author
konstantina
committed
Disqus comment in the last example of each library not logged in logfile.
When compiling examples, the comment in the last example was not logged in the logfile during selenium tests execution. This commit fixes this bug.
1 parent daa8028 commit a49a574

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codebender_testing/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,13 +704,13 @@ def compile_sketches(self, sketches, iframe=False, project_view=False, logfile=N
704704
log_entry[sketch]['unsupported'] = True
705705
test_status = 'U'
706706

707-
self.create_log(log_file,log_entry, compile_type)
708-
709707
# Update Disqus comments.
710708
current_date = strftime('%Y-%m-%d', log_time)
711709
if comment and compile_type in ['library', 'target_library']:
712710
log_entry = disqus_wrapper.update_comment(sketch, results, current_date, log_entry, openFailFlag, total_sketches)
713711

712+
self.create_log(log_file, log_entry, compile_type)
713+
714714
# Display progress
715715
sys.stdout.write(test_status)
716716
sys.stdout.flush()

0 commit comments

Comments
 (0)