From 4913f06e0d58a31cc142a16fd7750f2b8abfd226 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Tue, 24 Jan 2023 18:07:21 +0100 Subject: [PATCH] Updated test status Fix for #2614 (Send to eReader not working for guest user) --- cps/templates/detail.html | 1 + cps/web.py | 2 +- test/Calibre-Web TestSummary_Linux.html | 1457 +++++++++-------------- 3 files changed, 556 insertions(+), 904 deletions(-) diff --git a/cps/templates/detail.html b/cps/templates/detail.html index d6c8f42f..2d4781ac 100644 --- a/cps/templates/detail.html +++ b/cps/templates/detail.html @@ -38,6 +38,7 @@ {% endif %} {% endif %} {% if g.user.kindle_mail and entry.email_share_list %} + {% if entry.email_share_list.__len__() == 1 %}
{{entry.email_share_list[0]['text']}}
{% else %} diff --git a/cps/web.py b/cps/web.py index d2e4e32c..3a575d9e 100644 --- a/cps/web.py +++ b/cps/web.py @@ -1193,7 +1193,7 @@ def download_link(book_id, book_format, anyname): @web.route('/send///', methods=["POST"]) -@login_required +@login_required_if_no_ano @download_required def send_to_ereader(book_id, book_format, convert): if not config.get_mail_server_configured(): diff --git a/test/Calibre-Web TestSummary_Linux.html b/test/Calibre-Web TestSummary_Linux.html index c3675767..f4559f90 100644 --- a/test/Calibre-Web TestSummary_Linux.html +++ b/test/Calibre-Web TestSummary_Linux.html @@ -37,20 +37,20 @@
-

Start Time: 2023-01-22 19:25:10

+

Start Time: 2023-01-23 21:43:54

-

Stop Time: 2023-01-23 01:31:36

+

Stop Time: 2023-01-24 03:59:24

-

Duration: 5h 12 min

+

Duration: 5h 19 min

@@ -465,11 +465,11 @@ - + TestEbookConvertCalibre 15 - 14 - 1 + 15 + 0 0 0 @@ -569,31 +569,11 @@ - +
TestEbookConvertCalibre - test_email_only
- -
- FAIL -
- - - - + PASS @@ -635,11 +615,11 @@ AssertionError: 5995 not greater than or equal to 5996 - + TestEbookConvertCalibreGDrive 6 - 5 - 1 + 6 + 0 0 0 @@ -694,31 +674,11 @@ AssertionError: 5995 not greater than or equal to 5996 - +
TestEbookConvertCalibreGDrive - test_email_only
- -
- FAIL -
- - - - + PASS @@ -1868,11 +1828,11 @@ IndexError: list index out of range - + TestLoadMetadataScholar 1 - 1 0 + 1 0 0 @@ -1882,21 +1842,41 @@ IndexError: list index out of range - +
TestLoadMetadataScholar - test_load_metadata
- PASS + +
+ FAIL +
+ + + + - + TestSTARTTLS 3 - 2 - 1 + 3 + 0 0 0 @@ -1924,108 +1904,31 @@ IndexError: list index out of range - +
TestSTARTTLS - test_STARTTLS_resend_password
- -
- FAIL -
- - - - - - - - - - - _ErrorHolder - 1 - 0 - 0 - 1 - 0 - - Detail - - - - - - - -
tearDownClass (test_email_STARTTLS)
- - -
- ERROR -
- - - - + PASS - + TestSSL 7 - 6 - 1 + 7 + 0 0 0 - Detail + Detail - +
TestSSL - test_SSL_None_setup_error
@@ -2034,7 +1937,7 @@ element.find/</<@chrome://remote/content/marionette/element.sys.mjs:275:16 - +
TestSSL - test_SSL_STARTTLS_setup_error
@@ -2043,36 +1946,16 @@ element.find/</<@chrome://remote/content/marionette/element.sys.mjs:275:16 - +
TestSSL - test_SSL_logging_email
- -
- FAIL -
- - - - + PASS - +
TestSSL - test_SSL_non_admin_user
@@ -2081,7 +1964,7 @@ AssertionError: 0 is not true : Email logging not working - +
TestSSL - test_SSL_only
@@ -2090,7 +1973,7 @@ AssertionError: 0 is not true : Email logging not working - +
TestSSL - test_email_limit
@@ -2099,7 +1982,7 @@ AssertionError: 0 is not true : Email logging not working - +
TestSSL - test_filepicker_two_file
@@ -2117,13 +2000,13 @@ AssertionError: 0 is not true : Email logging not working 0 0 - Detail + Detail - +
TestBookDatabase - test_invalid_book_path
@@ -2141,13 +2024,13 @@ AssertionError: 0 is not true : Email logging not working 0 0 - Detail + Detail - +
TestErrorReadColumn - test_invalid_custom_column
@@ -2156,7 +2039,7 @@ AssertionError: 0 is not true : Email logging not working - +
TestErrorReadColumn - test_invalid_custom_read_column
@@ -2174,13 +2057,13 @@ AssertionError: 0 is not true : Email logging not working 0 1 - Detail + Detail - +
TestFilePicker - test_filepicker_limited_file
@@ -2189,19 +2072,19 @@ AssertionError: 0 is not true : Email logging not working - +
TestFilePicker - test_filepicker_new_file
- SKIP + SKIP
-