From 5c19a8aacc393549a1f4c1f3943d25c1f5f5736a Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sat, 28 Aug 2021 08:24:38 +0200 Subject: [PATCH] Bugfix edit comments Testupdate --- cps/editbooks.py | 2 +- test/Calibre-Web TestSummary_Linux.html | 1676 ++++++++++++++++------- 2 files changed, 1175 insertions(+), 503 deletions(-) diff --git a/cps/editbooks.py b/cps/editbooks.py index d8e16e4c..e217ebd9 100644 --- a/cps/editbooks.py +++ b/cps/editbooks.py @@ -468,7 +468,7 @@ def edit_book_comments(comments, book): comments = clean_html(comments) if len(book.comments): if book.comments[0].text != comments: - book.comments[0].text = clean_html(comments) + book.comments[0].text = comments modif_date = True else: if comments: diff --git a/test/Calibre-Web TestSummary_Linux.html b/test/Calibre-Web TestSummary_Linux.html index 101769f7..5175c380 100644 --- a/test/Calibre-Web TestSummary_Linux.html +++ b/test/Calibre-Web TestSummary_Linux.html @@ -37,20 +37,20 @@
-

Start Time: 2021-07-30 11:44:06

+

Start Time: 2021-08-27 20:45:00

-

Stop Time: 2021-07-30 15:14:26

+

Stop Time: 2021-08-28 00:16:11

-

Duration: 2h 45 min

+

Duration: 2h 48 min

@@ -402,12 +402,12 @@ - + TestEbookConvertCalibre 11 - 11 - 0 - 0 + 2 + 2 + 7 0 Detail @@ -425,65 +425,205 @@ - +
TestEbookConvertCalibre - test_convert_email
- PASS + +
+ ERROR +
+ + + + - +
TestEbookConvertCalibre - test_convert_failed_and_email
- PASS + +
+ ERROR +
+ + + + - +
TestEbookConvertCalibre - test_convert_only
- PASS + +
+ ERROR +
+ + + + - +
TestEbookConvertCalibre - test_convert_parameter
- PASS + +
+ FAIL +
+ + + + - +
TestEbookConvertCalibre - test_convert_wrong_excecutable
- PASS + +
+ FAIL +
+ + + + - +
TestEbookConvertCalibre - test_email_failed
- PASS + +
+ ERROR +
+ + + + - +
TestEbookConvertCalibre - test_email_only
- PASS + +
+ ERROR +
+ + + + @@ -497,31 +637,71 @@ - +
TestEbookConvertCalibre - test_ssl_smtp_setup_error
- PASS + +
+ ERROR +
+ + + + - +
TestEbookConvertCalibre - test_starttls_smtp_setup_error
- PASS + +
+ ERROR +
+ + + + - + TestEbookConvertCalibreGDrive 6 - 6 - 0 0 + 1 + 5 0 Detail @@ -530,67 +710,187 @@ - +
TestEbookConvertCalibreGDrive - test_convert_email
- PASS + +
+ ERROR +
+ + + + - +
TestEbookConvertCalibreGDrive - test_convert_failed_and_email
- PASS + +
+ ERROR +
+ + + + - +
TestEbookConvertCalibreGDrive - test_convert_only
- PASS + +
+ ERROR +
+ + + + - +
TestEbookConvertCalibreGDrive - test_convert_parameter
- PASS + +
+ FAIL +
+ + + + - +
TestEbookConvertCalibreGDrive - test_email_failed
- PASS + +
+ ERROR +
+ + + + - +
TestEbookConvertCalibreGDrive - test_email_only
- PASS + +
+ ERROR +
+ + + + - + TestEbookConvertKepubify 3 - 3 - 0 + 2 0 + 1 0 Detail @@ -608,11 +908,31 @@ - +
TestEbookConvertKepubify - test_convert_only
- PASS + +
+ ERROR +
+ + + + @@ -627,12 +947,12 @@ - + TestEbookConvertGDriveKepubify 3 - 3 - 0 + 2 0 + 1 0 Detail @@ -650,11 +970,31 @@ - +
TestEbookConvertGDriveKepubify - test_convert_only
- PASS + +
+ ERROR +
+ + + + @@ -669,15 +1009,15 @@ - + TestEditAdditionalBooks - 13 + 15 12 0 - 0 + 2 1 - Detail + Detail @@ -816,13 +1156,105 @@ + + + +
TestEditAdditionalBooks - test_xss_comment_edit
+ + +
+ ERROR +
+ + + + + + + + + + +
TestEditAdditionalBooks - test_xss_custom_comment_edit
+ + +
+ ERROR +
+ + + + + + + + + + TestEditBooks 35 - 34 - 0 + 33 + 1 0 1 @@ -859,11 +1291,32 @@ - +
TestEditBooks - test_edit_comments
- PASS + +
+ FAIL +
+ + + + @@ -1270,11 +1723,11 @@ - + TestEditBooksOnGdrive 20 - 20 - 0 + 19 + 1 0 0 @@ -1311,11 +1764,32 @@ - +
TestEditBooksOnGdrive - test_edit_comments
- PASS + +
+ FAIL +
+ + + + @@ -1465,12 +1939,12 @@ - + TestSTARTTLS 3 - 3 - 0 + 1 0 + 2 0 Detail @@ -1479,20 +1953,60 @@ - +
TestSTARTTLS - test_STARTTLS
- PASS + +
+ ERROR +
+ + + + - +
TestSTARTTLS - test_STARTTLS_SSL_setup_error
- PASS + +
+ ERROR +
+ + + + @@ -1507,12 +2021,12 @@ - + TestSSL 6 - 6 - 0 + 1 0 + 5 0 Detail @@ -1521,20 +2035,60 @@ - +
TestSSL - test_SSL_None_setup_error
- PASS + +
+ ERROR +
+ + + + - +
TestSSL - test_SSL_STARTTLS_setup_error
- PASS + +
+ ERROR +
+ + + + @@ -1548,29 +2102,159 @@ - +
TestSSL - test_SSL_non_admin_user
- PASS + +
+ ERROR +
+ + + + - +
TestSSL - test_SSL_only
- PASS + +
+ ERROR +
+ + + + - +
TestSSL - test_email_limit
- PASS + +
+ ERROR +
+ + + + + + + + + + + _ErrorHolder + 1 + 0 + 0 + 1 + 0 + + Detail + + + + + + + +
tearDownClass (test_email_ssl)
+ + +
+ ERROR +
+ + + + @@ -1584,13 +2268,13 @@ 0 0 - Detail + Detail - +
TestBookDatabase - test_invalid_book_path
@@ -1608,13 +2292,13 @@ 0 0 - Detail + Detail - +
TestErrorReadColumn - test_invalid_custom_column
@@ -1632,25 +2316,25 @@ 0 2 - Detail + Detail - +
TestFilePicker - test_filepicker_all_file
- SKIP + SKIP
-