From 64e9b13311ab14f2ebf00901bbea1cb594daeee7 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Tue, 28 Feb 2023 19:48:53 +0100 Subject: [PATCH] Bugfix after merge Bugfix generate Metadata backup --- cps/admin.py | 4 +- cps/tasks/metadata_backup.py | 6 +- cps/web.py | 2 +- setup.cfg | 2 +- test/Calibre-Web TestSummary_Linux.html | 3297 +++++++++++------------ 5 files changed, 1634 insertions(+), 1677 deletions(-) diff --git a/cps/admin.py b/cps/admin.py index 9d820008..610afa17 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -163,7 +163,7 @@ def queue_metadata_backup(): show_text = {} log.warning("Queuing all books for metadata backup") helper.set_all_metadata_dirty() - show_text['text'] = _('Success! Books queued for Metadata Backup') + show_text['text'] = _('Success! Books queued for Metadata Backup, please check Tasks for result') return json.dumps(show_text) @@ -1995,7 +1995,7 @@ def _handle_edit_user(to_save, content, languages, translations, kobo_support): else: content.role &= ~constants.ROLE_ANONYMOUS if to_save.get("password", ""): - content.password = generate_password_hash(helper.valid_password(to_save.get["password"])) + content.password = generate_password_hash(helper.valid_password(to_save.get("password", ""))) new_email = valid_email(to_save.get("email", content.email)) if not new_email: diff --git a/cps/tasks/metadata_backup.py b/cps/tasks/metadata_backup.py index b700b22a..2bb2a06f 100644 --- a/cps/tasks/metadata_backup.py +++ b/cps/tasks/metadata_backup.py @@ -89,7 +89,6 @@ class TaskBackupMetadata(CalibreTask): self.open_metadata(book, custom_columns) else: self.log.error("Book {} not found in database".format(backup.book)) - # self._handleError("Book {} not found in database".format(backup.book)) i += 1 self.progress = (1.0 / count) * i self._handleSuccess() @@ -230,9 +229,8 @@ class TaskBackupMetadata(CalibreTask): try: with open(book_metadata_filepath, 'wb') as f: doc.write(f, xml_declaration=True, encoding='utf-8', pretty_print=True) - except Exception: - # ToDo: Folder not writeable error - pass + except Exception as ex: + raise Exception('Writing Metadata failed with error: {} '.format(ex)) @property def name(self): diff --git a/cps/web.py b/cps/web.py index 2578ed48..528e1db4 100644 --- a/cps/web.py +++ b/cps/web.py @@ -1423,7 +1423,7 @@ def change_profile(kobo_support, local_oauth_check, oauth_status, translations, try: if current_user.role_passwd() or current_user.role_admin(): if to_save.get("password", "") != "": - current_user.password = generate_password_hash(to_save.get("password")) + current_user.password = generate_password_hash(valid_password(to_save.get("password"))) if to_save.get("kindle_mail", current_user.kindle_mail) != current_user.kindle_mail: current_user.kindle_mail = valid_email(to_save.get("kindle_mail")) new_email = valid_email(to_save.get("email", current_user.email)) diff --git a/setup.cfg b/setup.cfg index 91acc9f0..9c772414 100644 --- a/setup.cfg +++ b/setup.cfg @@ -58,7 +58,7 @@ install_requires = flask-wtf>=0.14.2,<1.2.0 chardet>=3.0.0,<4.1.0 advocate>=1.0.0,<1.1.0 - Flask-Limiter>=2.3.0,<3.2.0 + Flask-Limiter>=2.3.0,<3.3.0 [options.extras_require] diff --git a/test/Calibre-Web TestSummary_Linux.html b/test/Calibre-Web TestSummary_Linux.html index 06f5a539..b003eb8f 100644 --- a/test/Calibre-Web TestSummary_Linux.html +++ b/test/Calibre-Web TestSummary_Linux.html @@ -37,20 +37,20 @@
-

Start Time: 2023-02-15 20:17:44

+

Start Time: 2023-02-28 19:53:13

-

Stop Time: 2023-02-16 02:39:07

+

Stop Time: 2023-03-01 02:13:56

-

Duration: 5h 24 min

+

Duration: 5h 28 min

@@ -102,11 +102,11 @@ - + TestAnonymous 13 - 4 - 9 + 13 + 0 0 0 @@ -134,234 +134,74 @@ - +
TestAnonymous - test_guest_change_visibility_category
- -
- FAIL -
- - - - + PASS - +
TestAnonymous - test_guest_change_visibility_format
- -
- FAIL -
- - - - + PASS - +
TestAnonymous - test_guest_change_visibility_hot
- -
- FAIL -
- - - - + PASS - +
TestAnonymous - test_guest_change_visibility_language
- -
- FAIL -
- - - - + PASS - +
TestAnonymous - test_guest_change_visibility_publisher
- -
- FAIL -
- - - - + PASS - +
TestAnonymous - test_guest_change_visibility_rated
- -
- FAIL -
- - - - + PASS - +
TestAnonymous - test_guest_change_visibility_rating
- -
- FAIL -
- - - - + PASS - +
TestAnonymous - test_guest_change_visibility_series
- -
- FAIL -
- - - - + PASS @@ -384,31 +224,125 @@ AssertionError: False is not true - +
TestAnonymous - test_guest_visibility_sidebar
- -
- FAIL -
- - - + PASS + + + + + + + TestBackupMetadata + 11 + 11 + 0 + 0 + 0 + + Detail + + + + + + + +
TestBackupMetadata - test_backup_all
+ PASS + + + + + + +
TestBackupMetadata - test_backup_change_book_author
+ + PASS + + + + + + +
TestBackupMetadata - test_backup_change_book_custom_bool
+ + PASS + + + + + + +
TestBackupMetadata - test_backup_change_book_publisher
+ + PASS + + + + + + +
TestBackupMetadata - test_backup_change_book_publishing_date
+ + PASS + + + + + + +
TestBackupMetadata - test_backup_change_book_read_status
+ + PASS + + + + + + +
TestBackupMetadata - test_backup_change_book_series
+ + PASS + + + + + + +
TestBackupMetadata - test_backup_change_book_seriesindex
+ + PASS + + + + + + +
TestBackupMetadata - test_backup_change_book_tags
+ + PASS + + + + + + +
TestBackupMetadata - test_backup_change_book_title
+ + PASS + + + + + + +
TestBackupMetadata - test_grdive
+ + PASS @@ -422,13 +356,13 @@ AssertionError: False is not true 0 0 - Detail + Detail - +
TestCli - test_already_started
@@ -437,7 +371,7 @@ AssertionError: False is not true - +
TestCli - test_bind_to_single_interface
@@ -446,7 +380,7 @@ AssertionError: False is not true - +
TestCli - test_change_password
@@ -455,7 +389,7 @@ AssertionError: False is not true - +
TestCli - test_cli_SSL_files
@@ -464,7 +398,7 @@ AssertionError: False is not true - +
TestCli - test_cli_different_folder
@@ -473,7 +407,7 @@ AssertionError: False is not true - +
TestCli - test_cli_different_settings_database
@@ -482,7 +416,7 @@ AssertionError: False is not true - +
TestCli - test_dryrun_update
@@ -491,7 +425,7 @@ AssertionError: False is not true - +
TestCli - test_enable_reconnect
@@ -500,7 +434,7 @@ AssertionError: False is not true - +
TestCli - test_environ_port_setting
@@ -509,7 +443,7 @@ AssertionError: False is not true - +
TestCli - test_no_database
@@ -518,7 +452,7 @@ AssertionError: False is not true - +
TestCli - test_settingsdb_not_writeable
@@ -527,7 +461,7 @@ AssertionError: False is not true - +
TestCli - test_writeonly_static_files
@@ -545,13 +479,13 @@ AssertionError: False is not true 0 0 - Detail + Detail - +
TestCliGdrivedb - test_cli_gdrive_folder
@@ -560,7 +494,7 @@ AssertionError: False is not true - +
TestCliGdrivedb - test_cli_gdrive_location
@@ -569,7 +503,7 @@ AssertionError: False is not true - +
TestCliGdrivedb - test_gdrive_db_nonwrite
@@ -578,7 +512,7 @@ AssertionError: False is not true - +
TestCliGdrivedb - test_no_database
@@ -596,13 +530,13 @@ AssertionError: False is not true 0 0 - Detail + Detail - +
TestCoverEditBooks - test_invalid_jpg_hdd
@@ -611,7 +545,7 @@ AssertionError: False is not true - +
TestCoverEditBooks - test_upload_jpg
@@ -629,13 +563,13 @@ AssertionError: False is not true 0 0 - Detail + Detail - +
TestDeleteDatabase - test_delete_books_in_database
@@ -653,13 +587,13 @@ AssertionError: False is not true 0 0 - Detail + Detail - +
TestEbookConvertCalibre - test_calibre_log
@@ -668,7 +602,7 @@ AssertionError: False is not true - +
TestEbookConvertCalibre - test_convert_deactivate
@@ -677,7 +611,7 @@ AssertionError: False is not true - +
TestEbookConvertCalibre - test_convert_email
@@ -686,7 +620,7 @@ AssertionError: False is not true - +
TestEbookConvertCalibre - test_convert_failed_and_email
@@ -695,7 +629,7 @@ AssertionError: False is not true - +
TestEbookConvertCalibre - test_convert_only
@@ -704,7 +638,7 @@ AssertionError: False is not true - +
TestEbookConvertCalibre - test_convert_options
@@ -713,7 +647,7 @@ AssertionError: False is not true - +
TestEbookConvertCalibre - test_convert_parameter
@@ -722,7 +656,7 @@ AssertionError: False is not true - +
TestEbookConvertCalibre - test_convert_wrong_excecutable
@@ -731,7 +665,7 @@ AssertionError: False is not true - +
TestEbookConvertCalibre - test_convert_xss
@@ -740,7 +674,7 @@ AssertionError: False is not true - +
TestEbookConvertCalibre - test_email_failed
@@ -749,7 +683,7 @@ AssertionError: False is not true - +
TestEbookConvertCalibre - test_email_only
@@ -758,7 +692,7 @@ AssertionError: False is not true - +
TestEbookConvertCalibre - test_kindle_send_not_configured
@@ -767,7 +701,7 @@ AssertionError: False is not true - +
TestEbookConvertCalibre - test_ssl_smtp_setup_error
@@ -776,7 +710,7 @@ AssertionError: False is not true - +
TestEbookConvertCalibre - test_starttls_smtp_setup_error
@@ -785,7 +719,7 @@ AssertionError: False is not true - +
TestEbookConvertCalibre - test_user_convert_xss
@@ -795,84 +729,15 @@ AssertionError: False is not true - - TestEbookConvertCalibreGDrive - 6 - 6 - 0 - 0 - 0 - - Detail - - - - - - - -
TestEbookConvertCalibreGDrive - test_convert_email
- - PASS - - - - - - -
TestEbookConvertCalibreGDrive - test_convert_failed_and_email
- - PASS - - - - - - -
TestEbookConvertCalibreGDrive - test_convert_only
- - PASS - - - - - - -
TestEbookConvertCalibreGDrive - test_convert_parameter
- - PASS - - - - - - -
TestEbookConvertCalibreGDrive - test_email_failed
- - PASS - - - - - - -
TestEbookConvertCalibreGDrive - test_email_only
- - PASS - - - - - - TestEbookConvertKepubify - 6 + TestEbookConvertCalibreGDrive + 13 0 0 - 6 + 13 0 - Detail + Detail @@ -880,7 +745,7 @@ AssertionError: False is not true -
TestEbookConvertKepubify - test_convert_deactivate
+
TestEbookConvertCalibreGDrive - test_convert_email
@@ -926,21 +791,15 @@ Traceback (most recent call last): conn = self._new_conn() File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f06543b7070>: Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f3dc45bd330>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_kepubify.py", line 60, in test_convert_deactivate - self.fill_basic_config({'config_kepubifypath': ""}) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 398, in fill_basic_config - cls._fill_basic_config(elements) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 302, in _fill_basic_config - WebDriverWait(cls.driver, 5).until(EC.presence_of_element_located((By.ID, "config_port"))) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 86, in until - value = method(self._driver) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 69, in _predicate - return driver.find_element(*locator) + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 189, in test_convert_email + self.setup_server(True, {'mail_password_e': '10234', 'mail_use_ssl': 'None'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 733, in setup_server + select = Select(cls.driver.find_element(By.ID, key)) File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 830, in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 438, in execute @@ -965,7 +824,7 @@ Traceback (most recent call last): retries = retries.increment( File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=53967): Max retries exceeded with url: /session/a6cf14b2-710f-43b1-8b46-f8470a56e22a/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f06543b7070>: Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=36609): Max retries exceeded with url: /session/b563ab83-0fbb-48e3-a23e-a1e051a2ab77/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3dc45bd330>: Failed to establish a new connection: [Errno 111] Connection refused'))
@@ -977,7 +836,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p -
TestEbookConvertKepubify - test_convert_deactivate
+
TestEbookConvertCalibreGDrive - test_convert_email
@@ -1023,12 +882,12 @@ Traceback (most recent call last): conn = self._new_conn() File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f06543b7c10>: Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f3dc45be9b0>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_kepubify.py", line 54, in tearDown + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 135, in tearDown if not self.check_user_logged_in('admin'): File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 117, in check_user_logged_in user_element = cls.check_element_on_page((By.ID, "top_user")) @@ -1062,7 +921,7 @@ Traceback (most recent call last): retries = retries.increment( File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=53967): Max retries exceeded with url: /session/a6cf14b2-710f-43b1-8b46-f8470a56e22a/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f06543b7c10>: Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=36609): Max retries exceeded with url: /session/b563ab83-0fbb-48e3-a23e-a1e051a2ab77/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3dc45be9b0>: Failed to establish a new connection: [Errno 111] Connection refused'))
@@ -1074,7 +933,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p -
TestEbookConvertKepubify - test_convert_only
+
TestEbookConvertCalibreGDrive - test_convert_failed_and_email
@@ -1120,14 +979,14 @@ Traceback (most recent call last): conn = self._new_conn() File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f06543b6e90>: Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f3dc45d7c40>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_kepubify.py", line 110, in test_convert_only - vals = self.get_convert_book(7) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 2029, in get_convert_book + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 240, in test_convert_failed_and_email + vals = self.get_convert_book(1) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 2041, in get_convert_book cls.driver.get(root_url + "/admin/book/"+str(id)) File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 449, in get self.execute(Command.GET, {"url": url}) @@ -1153,7 +1012,7 @@ Traceback (most recent call last): retries = retries.increment( File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=53967): Max retries exceeded with url: /session/a6cf14b2-710f-43b1-8b46-f8470a56e22a/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f06543b6e90>: Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=36609): Max retries exceeded with url: /session/b563ab83-0fbb-48e3-a23e-a1e051a2ab77/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3dc45d7c40>: Failed to establish a new connection: [Errno 111] Connection refused'))
@@ -1165,7 +1024,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p -
TestEbookConvertKepubify - test_convert_only
+
TestEbookConvertCalibreGDrive - test_convert_failed_and_email
@@ -1211,12 +1070,12 @@ Traceback (most recent call last): conn = self._new_conn() File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f06543b6800>: Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f3dc45d7e80>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_kepubify.py", line 54, in tearDown + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 135, in tearDown if not self.check_user_logged_in('admin'): File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 117, in check_user_logged_in user_element = cls.check_element_on_page((By.ID, "top_user")) @@ -1250,7 +1109,7 @@ Traceback (most recent call last): retries = retries.increment( File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=53967): Max retries exceeded with url: /session/a6cf14b2-710f-43b1-8b46-f8470a56e22a/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f06543b6800>: Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=36609): Max retries exceeded with url: /session/b563ab83-0fbb-48e3-a23e-a1e051a2ab77/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3dc45d7e80>: Failed to establish a new connection: [Errno 111] Connection refused'))
@@ -1262,7 +1121,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p -
TestEbookConvertKepubify - test_convert_wrong_excecutable
+
TestEbookConvertCalibreGDrive - test_convert_only
@@ -1308,23 +1167,17 @@ Traceback (most recent call last): conn = self._new_conn() File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f06543b4ee0>: Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f3dc45d7580>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_kepubify.py", line 76, in test_convert_wrong_excecutable - self.fill_basic_config({'config_kepubifypath':'/opt/kepubify/ebook-polish'}) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 398, in fill_basic_config - cls._fill_basic_config(elements) - File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 302, in _fill_basic_config - WebDriverWait(cls.driver, 5).until(EC.presence_of_element_located((By.ID, "config_port"))) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/wait.py", line 86, in until - value = method(self._driver) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/support/expected_conditions.py", line 69, in _predicate - return driver.find_element(*locator) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 830, in find_element - return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 311, in test_convert_only + vals = self.get_convert_book(7) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 2041, in get_convert_book + cls.driver.get(root_url + "/admin/book/"+str(id)) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 449, in get + self.execute(Command.GET, {"url": url}) File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 438, in execute response = self.command_executor.execute(driver_command, params) File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/remote_connection.py", line 290, in execute @@ -1347,7 +1200,7 @@ Traceback (most recent call last): retries = retries.increment( File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=53967): Max retries exceeded with url: /session/a6cf14b2-710f-43b1-8b46-f8470a56e22a/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f06543b4ee0>: Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=36609): Max retries exceeded with url: /session/b563ab83-0fbb-48e3-a23e-a1e051a2ab77/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3dc45d7580>: Failed to establish a new connection: [Errno 111] Connection refused'))
@@ -1359,7 +1212,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p -
TestEbookConvertKepubify - test_convert_wrong_excecutable
+
TestEbookConvertCalibreGDrive - test_convert_only
@@ -1405,12 +1258,12 @@ Traceback (most recent call last): conn = self._new_conn() File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError( -urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f06543b63b0>: Failed to establish a new connection: [Errno 111] Connection refused +urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f3dc44b3c10>: Failed to establish a new connection: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_kepubify.py", line 54, in tearDown + File "/home/ozzie/Development/calibre-web-test/test/test_ebook_convert_gdrive.py", line 135, in tearDown if not self.check_user_logged_in('admin'): File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 117, in check_user_logged_in user_element = cls.check_element_on_page((By.ID, "top_user")) @@ -1444,7 +1297,674 @@ Traceback (most recent call last): retries = retries.increment( File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) -urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=53967): Max retries exceeded with url: /session/a6cf14b2-710f-43b1-8b46-f8470a56e22a/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f06543b63b0>: Failed to establish a new connection: [Errno 111] Connection refused')) +urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=36609): Max retries exceeded with url: /session/b563ab83-0fbb-48e3-a23e-a1e051a2ab77/element (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f3dc44b3c10>: Failed to establish a new connection: [Errno 111] Connection refused')) +
+
+ + + + + + + + + +
TestEbookConvertCalibreGDrive - test_convert_parameter
+ + +
+ ERROR +
+ + + + + + + + + + +
TestEbookConvertCalibreGDrive - test_convert_parameter
+ + +
+ ERROR +
+ + + + + + + + + + +
TestEbookConvertCalibreGDrive - test_email_failed
+ + +
+ ERROR +
+ + + + + + + + + + +
TestEbookConvertCalibreGDrive - test_email_failed
+ + +
+ ERROR +
+ + + + + + + + + + +
TestEbookConvertCalibreGDrive - test_email_only
+ + +
+ ERROR +
+ + + + + + + + + + +
TestEbookConvertCalibreGDrive - test_email_only
+ + +
+ ERROR +
+ + + + + + + + + + +
TestEbookConvertCalibreGDrive - test_thumbnail_cache
+ + +
+ ERROR +
+ + @@ -1456,7 +1976,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - TestEbookConvertGDriveKepubify + TestEbookConvertKepubify 3 3 0 @@ -1471,7 +1991,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p -
TestEbookConvertGDriveKepubify - test_convert_deactivate
+
TestEbookConvertKepubify - test_convert_deactivate
PASS @@ -1480,7 +2000,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p -
TestEbookConvertGDriveKepubify - test_convert_only
+
TestEbookConvertKepubify - test_convert_only
PASS @@ -1488,6 +2008,48 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p + +
TestEbookConvertKepubify - test_convert_wrong_excecutable
+ + PASS + + + + + + + TestEbookConvertGDriveKepubify + 3 + 3 + 0 + 0 + 0 + + Detail + + + + + + + +
TestEbookConvertGDriveKepubify - test_convert_deactivate
+ + PASS + + + + + + +
TestEbookConvertGDriveKepubify - test_convert_only
+ + PASS + + + + +
TestEbookConvertGDriveKepubify - test_convert_wrong_excecutable
@@ -1505,13 +2067,13 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p 0 1 - Detail + Detail - +
TestEditAdditionalBooks - test_cbz_comicinfo
@@ -1520,7 +2082,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_change_upload_formats
@@ -1529,7 +2091,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_delete_book
@@ -1538,7 +2100,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_delete_role
@@ -1547,7 +2109,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_details_popup
@@ -1556,7 +2118,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_edit_book_identifier
@@ -1565,7 +2127,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_edit_book_identifier_capital
@@ -1574,7 +2136,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_edit_book_identifier_standard
@@ -1583,7 +2145,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_edit_special_book_identifier
@@ -1592,7 +2154,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_title_sort
@@ -1601,7 +2163,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_upload_cbz_coverformats
@@ -1610,7 +2172,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_upload_edit_role
@@ -1619,7 +2181,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_upload_metadata_cbr
@@ -1628,7 +2190,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_upload_metadata_cbt
@@ -1637,7 +2199,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_xss_author_edit
@@ -1646,7 +2208,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_xss_comment_edit
@@ -1655,7 +2217,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditAdditionalBooks - test_xss_custom_comment_edit
@@ -1673,13 +2235,13 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p 0 1 - Detail + Detail - +
TestEditBooks - test_download_book
@@ -1688,7 +2250,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_author
@@ -1697,7 +2259,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_category
@@ -1706,7 +2268,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_comments
@@ -1715,7 +2277,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_custom_bool
@@ -1724,7 +2286,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_custom_categories
@@ -1733,7 +2295,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_custom_comment
@@ -1742,7 +2304,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_custom_date
@@ -1751,7 +2313,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_custom_float
@@ -1760,7 +2322,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_custom_int
@@ -1769,7 +2331,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_custom_rating
@@ -1778,7 +2340,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_custom_single_select
@@ -1787,7 +2349,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_custom_text
@@ -1796,7 +2358,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_language
@@ -1805,7 +2367,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_publisher
@@ -1814,7 +2376,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_publishing_date
@@ -1823,7 +2385,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_rating
@@ -1832,7 +2394,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_series
@@ -1841,7 +2403,7 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_edit_title
@@ -1850,19 +2412,19 @@ urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', p - +
TestEditBooks - test_rename_uppercase_lowercase
- SKIP + SKIP
-