From f4ed816f6efc0f914f4ce51ecdd11bd185d697ef Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sun, 26 Apr 2026 06:49:19 +0200 Subject: [PATCH] Fixes from testrun --- cps/db.py | 2 +- pyproject.toml | 6 +- test/Calibre-Web TestSummary_Linux.html | 2506 ++++++++++++++++++++--- 3 files changed, 2216 insertions(+), 298 deletions(-) diff --git a/cps/db.py b/cps/db.py index 989731e5..feee7a8f 100644 --- a/cps/db.py +++ b/cps/db.py @@ -1115,7 +1115,7 @@ class CalibreDB: .group_by(text('books_languages_link.lang_code')).all() tags = list() for lang in languages: - tag = Category(isoLanguages.get_language_name(get_locale(), None, lang[0].lang_code), lang[0].lang_code) + tag = Category(isoLanguages.get_language_name(get_locale(), lang[0].lang_code), lang[0].lang_code) tags.append([tag, lang[1]]) # Append all books without language to list if not return_all_languages: diff --git a/pyproject.toml b/pyproject.toml index 24b5a3cd..67a7acca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,12 +33,12 @@ dependencies = [ "Flask>=1.0.2,<3.2.0", "iso-639>=0.4.5,<0.5.0;python_version<'3.12'", "pycountry>=20.0.0,<27.0.0;python_version>='3.12'", - "PyPDF>=6.1.3,<6.8.0", + "PyPDF>=6.1.3,<6.11.0", "pytz>=2016.10", "requests>=2.32.0,<2.33.0", "SQLAlchemy>=1.3.0,<2.1.0", "tornado>=6.4.2,<6.6", - "Wand>=0.4.4,<0.7.0", + "Wand>=0.4.4,<0.8.0", "unidecode>=0.04.19,<1.5.0", "lxml>=4.9.1,<5.4.0", "flask-wtf>=0.14.2,<1.3.0", @@ -51,7 +51,7 @@ dependencies = [ "python-magic>=0.4.27,<0.5.0", "python-magic-bin>=0.4.0,<0.5.0;sys_platform=='win32'", "flask-httpAuth>=4.4.0,<5.0.0", - "cryptography>=39.0.0,<47.0.0", + "cryptography>=39.0.0,<48.0.0", "certifi>=2024.7.4,<2026.1.5", ] dynamic = ["version"] diff --git a/test/Calibre-Web TestSummary_Linux.html b/test/Calibre-Web TestSummary_Linux.html index 11271fe2..7a0eb669 100644 --- a/test/Calibre-Web TestSummary_Linux.html +++ b/test/Calibre-Web TestSummary_Linux.html @@ -37,20 +37,20 @@
-

Start Time: 2026-02-18 19:25:49

+

Start Time: 2026-04-25 16:06:06

-

Stop Time: 2026-02-19 02:59:10

+

Stop Time: 2026-04-25 23:02:36

-

Duration: 6h 16 min

+

Duration: 5h 43 min

@@ -102,15 +102,15 @@ - + TestAnonymous - 13 - 13 - 0 - 0 + 21 + 5 + 6 + 10 0 - Detail + Detail @@ -161,74 +161,476 @@ - +
TestAnonymous - test_guest_change_visibility_language
- PASS + +
+ ERROR +
+ + + + - + + +
TestAnonymous - test_guest_change_visibility_language
+ + +
+ ERROR +
+ + + + + + + + +
TestAnonymous - test_guest_change_visibility_publisher
- PASS + +
+ FAIL +
+ + + + - + + +
TestAnonymous - test_guest_change_visibility_publisher
+ + +
+ ERROR +
+ + + + + + + + +
TestAnonymous - test_guest_change_visibility_rated
- PASS + +
+ FAIL +
+ + + + - + + +
TestAnonymous - test_guest_change_visibility_rated
+ + +
+ ERROR +
+ + + + + + + + +
TestAnonymous - test_guest_change_visibility_rating
- PASS + +
+ FAIL +
+ + + + - + + +
TestAnonymous - test_guest_change_visibility_rating
+ + +
+ ERROR +
+ + + + + + + + +
TestAnonymous - test_guest_change_visibility_series
- PASS + +
+ FAIL +
+ + + + - + + +
TestAnonymous - test_guest_change_visibility_series
+ + +
+ ERROR +
+ + + + + + + + +
TestAnonymous - test_guest_random_books_available
- PASS + +
+ FAIL +
+ + + + - + + +
TestAnonymous - test_guest_random_books_available
+ + +
+ ERROR +
+ + + + + + + + +
TestAnonymous - test_guest_restricted_settings_visibility
- PASS + +
+ ERROR +
+ + + + - + + +
TestAnonymous - test_guest_restricted_settings_visibility
+ + +
+ ERROR +
+ + + + + + + + +
TestAnonymous - test_guest_visibility_sidebar
- PASS + +
+ FAIL +
+ + + + + + + + + + +
TestAnonymous - test_guest_visibility_sidebar
+ + +
+ ERROR +
+ + + + @@ -1200,13 +1602,13 @@ - + TestEditBooks 38 - 37 - 0 + 36 0 1 + 1 Detail @@ -1331,11 +1733,32 @@ - +
TestEditBooks - test_edit_language
- PASS + +
+ ERROR +
+ + + + @@ -1844,12 +2267,12 @@ - + TestEditBooksList 20 - 20 - 0 - 0 + 12 + 3 + 5 0 Detail @@ -1966,113 +2389,234 @@ - +
TestEditBooksList - test_bookslist_edit_languages
- PASS - - - - - - -
TestEditBooksList - test_bookslist_edit_publisher
- - PASS - - - - - - -
TestEditBooksList - test_bookslist_edit_series
- - PASS - - - - - - -
TestEditBooksList - test_bookslist_edit_seriesindex
- - PASS - - - - - - -
TestEditBooksList - test_bookslist_edit_title
- - PASS - - - - - - -
TestEditBooksList - test_list_visibility
- - PASS - - - - - - -
TestEditBooksList - test_restricted_rights
- - PASS - - - - - - -
TestEditBooksList - test_search_books_list
- - PASS - - - - - - - TestLoadMetadata - 1 - 0 - 1 - 0 - 0 - - Detail - - - - - - - -
TestLoadMetadata - test_load_metadata
-
- FAIL + FAIL
-