diff --git a/cps/updater.py b/cps/updater.py index e55feb6b..ab67e7a6 100644 --- a/cps/updater.py +++ b/cps/updater.py @@ -614,7 +614,7 @@ class Updater(threading.Thread): if version is False: status['current_commit_hash'] = _(u'Unknown') else: - status['current_commit_hash'] = version + status['current_commit_hash'] = version['version'] try: headers = {'Accept': 'application/vnd.github.v3+json'} r = requests.get(repository_url, headers=headers, timeout=10) diff --git a/test/Calibre-Web TestSummary_Linux.html b/test/Calibre-Web TestSummary_Linux.html index 93e4728c..629d9ce7 100644 --- a/test/Calibre-Web TestSummary_Linux.html +++ b/test/Calibre-Web TestSummary_Linux.html @@ -37,20 +37,20 @@
Start Time: 2024-11-02 08:09:02
+Start Time: 2024-11-02 20:22:07
Stop Time: 2024-11-02 15:03:00
+Stop Time: 2024-11-03 03:38:36
Duration: 5h 47 min
+Duration: 6h 9 min
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_edit_books_metadata.py", line 99, in test_load_metadata - if results[cont]['source'] == 'https://comicvine.gamespot.com/': -IndexError: list index out of range+ File "/home/ozzie/Development/calibre-web-test/test/test_edit_books_metadata.py", line 111, in test_load_metadata + self.assertEqual('https://comicvine.gamespot.com/', results[cv]['source']) +AssertionError: 'https://comicvine.gamespot.com/' != 'https://amazon.com/' +- https://comicvine.gamespot.com/ ++ https://amazon.com/
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_kobo_sync.py", line 372, in test_sync_shelf - self.assertEqual(1, len(data), data) -AssertionError: 1 != 0 : []-
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_login.py", line 347, in test_password_policy + self.create_user('lower_user', {'password': '123456P+', 'email': 'a3@b.com'}) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1013, in create_user + return cls.change_user(config) + File "/home/ozzie/Development/calibre-web-test/test/helper_ui.py", line 1083, in change_user + ele = 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 440, in execute + self.error_handler.check_response(response) + File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response + raise exception_class(message, screen, stacktrace) +selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: [id="password"] +Stacktrace: +RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 +WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5 +NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:511:5 +dom.find/</<@chrome://remote/content/shared/DOM.sys.mjs:136:16+
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_updater.py", line 153, in test_check_update_stable_errors - self.check_updater('Timeout', "alert", 13) - File "/home/ozzie/Development/calibre-web-test/test/test_updater.py", line 87, in check_updater - self.assertTrue(responsetext in self.check_element_on_page((By.ID, "message")).text) -AttributeError: 'bool' object has no attribute 'text'-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_updater.py", line 181, in test_check_update_stable_versions - self.check_updater('{}.{}.{}'.format(*version3), "alert-warning") - File "/home/ozzie/Development/calibre-web-test/test/test_updater.py", line 87, in check_updater - self.assertTrue(responsetext in self.check_element_on_page((By.ID, "message")).text) -AttributeError: 'bool' object has no attribute 'text'-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_updater.py", line 390, in test_perform_update - performUpdate.click() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webelement.py", line 93, in click - self._execute(Command.CLICK_ELEMENT) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webelement.py", line 403, in _execute - return self._parent.execute(command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute - self.error_handler.check_response(response) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response - raise exception_class(message, screen, stacktrace) -selenium.common.exceptions.ElementNotInteractableException: Message: Element <div id="perform_update" class="btn btn-primary hidden"> could not be scrolled into view -Stacktrace: -RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 -WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5 -ElementNotInteractableError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:353:5 -webdriverClickElement@chrome://remote/content/marionette/interaction.sys.mjs:167:11 -interaction.clickElement@chrome://remote/content/marionette/interaction.sys.mjs:136:11 -clickElement@chrome://remote/content/marionette/actors/MarionetteCommandsChild.sys.mjs:205:29 -receiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.sys.mjs:85:31-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_updater.py", line 330, in test_perform_update_stable_errors - performUpdate.click() - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webelement.py", line 93, in click - self._execute(Command.CLICK_ELEMENT) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webelement.py", line 403, in _execute - return self._parent.execute(command, params) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute - self.error_handler.check_response(response) - File "/home/ozzie/Development/calibre-web-test/venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response - raise exception_class(message, screen, stacktrace) -selenium.common.exceptions.ElementNotInteractableException: Message: Element <div id="perform_update" class="btn btn-primary hidden"> could not be scrolled into view -Stacktrace: -RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 -WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5 -ElementNotInteractableError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:353:5 -webdriverClickElement@chrome://remote/content/marionette/interaction.sys.mjs:167:11 -interaction.clickElement@chrome://remote/content/marionette/interaction.sys.mjs:136:11 -clickElement@chrome://remote/content/marionette/actors/MarionetteCommandsChild.sys.mjs:205:29 -receiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.sys.mjs:85:31-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_updater.py", line 431, in test_update_write_protect - self.assertTrue(self.check_element_on_page((By.ID, "message"))) -AssertionError: False is not true-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_upload_epubs.py", line 88, in test_upload_epub_lang - details = self.verify_upload(epub_file, check_warning=True) - File "/home/ozzie/Development/calibre-web-test/test/test_upload_epubs.py", line 79, in verify_upload - self.assertTrue(self.check_element_on_page((By.ID, "flash_warning"))) -AssertionError: False is not true-