Skip to content

Commit 99daad6

Browse files
author
Konstantinacc
committed
Merge branch 'tests_fixes' of https://github.com/codebendercc/seleniumTests into tests_fixes
2 parents 4ba7dd6 + de82bef commit 99daad6

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

codebender_testing/disqus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def update_comment(self, sketch, results, current_date, log_entry, openFailFlag,
7676
library_to_comment = library
7777

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

8282
self.last_library = library

tests/target_libraries/test_target_libraries.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@
88

99
GET_ALL_LIBRARIES_SCRIPT = """
1010
var libraries = {};
11-
var humanNameRegExp = /^.+\((.+)\)$/;
1211
$('#mycontainer').find('.library-expand-handle').map(function () {
13-
var libraryName = $(this).text();
14-
if (humanNameRegExp.test(libraryName)) {
15-
libraryName = libraryName.match(humanNameRegExp)[1].trim().replace(/\.h/, '');
16-
}
12+
var libraryName = $(this).parents('.accordion-group').attr('data-name');
1713
libraries[libraryName] = $(this).parent().find('.library_link').attr('href');
1814
});
1915
return libraries;
@@ -38,6 +34,7 @@ def test_compile_target_libraries(self):
3834

3935
urls_to_follow = []
4036
for target in targets:
37+
target = target.lower()
4138
if target in libraries:
4239
library_url = libraries[target]
4340
self.open(library_url)

0 commit comments

Comments
 (0)