diff --git a/cps/editbooks.py b/cps/editbooks.py index 41df5a2e..21561766 100755 --- a/cps/editbooks.py +++ b/cps/editbooks.py @@ -1066,7 +1066,7 @@ def upload(): book_id = db_book.id title = db_book.title - + # ToDo this currently doesn't work -> integrate in update_dir_structure_gdrive error = helper.update_dir_structure_file(book_id, config.config_calibre_dir, input_authors[0], diff --git a/cps/helper.py b/cps/helper.py index c9462ca7..26cca79c 100644 --- a/cps/helper.py +++ b/cps/helper.py @@ -464,8 +464,9 @@ def update_dir_structure_gdrive(book_id, first_author, renamed_author): gFile = gd.getFileFromEbooksFolder(None, old_author_dir) if gFile: gd.moveGdriveFolderRemote(gFile, new_author_rename_dir) - else: - error = _(u'File %(file)s not found on Google Drive', file=authordir) # file not found + # author is always co-author and has is never author, no folder is okay + #else: + # error = _(u'File %(file)s not found on Google Drive', file=authordir) # file not found else: new_authordir = get_valid_filename(book.authors[0].name, chars=96) diff --git a/test/Calibre-Web TestSummary_Linux.html b/test/Calibre-Web TestSummary_Linux.html index aa032162..742ae9fb 100644 --- a/test/Calibre-Web TestSummary_Linux.html +++ b/test/Calibre-Web TestSummary_Linux.html @@ -37,20 +37,20 @@
Start Time: 2022-01-30 21:26:41
+Start Time: 2022-01-31 21:25:49
Stop Time: 2022-01-31 01:29:29
+Stop Time: 2022-02-01 01:40:44
Duration: 3h 21 min
+Duration: 3h 28 min
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_edit_books_author_gdrive.py", line 294, in test_change_capital_co_author + self.assertFalse(self.check_element_on_page((By.ID, "flash_danger"))) +AssertionError: <selenium.webdriver.remote.webelement.WebElement (session="d92f8f6d-6918-4c96-a00d-13ae877191d1", element="f777605d-a838-445b-bae2-e6d59822f1fa")> is not false+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_edit_books_author_gdrive.py", line 346, in test_change_capital_rename_co_author + self.assertFalse(self.check_element_on_page((By.ID, "flash_danger"))) +AssertionError: <selenium.webdriver.remote.webelement.WebElement (session="d92f8f6d-6918-4c96-a00d-13ae877191d1", element="4fcb7fb8-c3e4-4e04-8fb3-6d99d9999b74")> is not false+
Traceback (most recent call last): + File "/home/ozzie/Development/calibre-web-test/test/test_edit_books_author_gdrive.py", line 461, in test_change_capital_rename_two_co_authors + self.assertFalse(self.check_element_on_page((By.ID, "flash_danger"))) +AssertionError: <selenium.webdriver.remote.webelement.WebElement (session="d92f8f6d-6918-4c96-a00d-13ae877191d1", element="e4d4c44d-e87d-495b-abc6-f8a5100f2098")> is not false+
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_edit_ebooks_gdrive.py", line 940, in test_watch_metadata - self.assertNotIn('series', book) -AssertionError: 'series' unexpectedly found in {'id': 5, 'reader': [], 'title': 'testbook', 'author': ['John Döe'], 'rating': 0, 'languages': ['English'], 'identifier': [], 'cover': '/cover/5?edit=0ec12ad1-d1a5-4308-8d9b-da739ee472a2', 'tag': [], 'publisher': ['Randomhäus'], 'pubdate': 'Jan 19, 2017', 'comment': 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit.Aenean commodo ligula eget dolor.Aenean massa.Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem.Nulla consequat massa quis enim.Donec pede justo, fringilla vel, aliquet nec, vulputate', 'add_shelf': [], 'del_shelf': [], 'edit_enable': True, 'kindle': None, 'kindlebtn': None, 'download': ['EPUB (6.7 kB)'], 'read': False, 'archived': False, 'series_all': 'Book 1 of test', 'series_index': '1', 'series': 'test', 'cust_columns': []}-
Traceback (most recent call last): - File "/home/ozzie/Development/calibre-web-test/test/test_edit_metadata_scholar.py", line 68, in test_load_metadata - self.assertEqual(30, len(results)) -AssertionError: 30 != 35-