diff --git a/cps/logger.py b/cps/logger.py index f13d75d3..7cc0f4d9 100644 --- a/cps/logger.py +++ b/cps/logger.py @@ -126,11 +126,11 @@ def setup(log_file, log_level=None): file_handler.baseFilename = log_file else: try: - file_handler = RotatingFileHandler(log_file, maxBytes=50000, backupCount=2) + file_handler = RotatingFileHandler(log_file, maxBytes=50000, backupCount=2, encoding='utf-8') except IOError: if log_file == DEFAULT_LOG_FILE: raise - file_handler = RotatingFileHandler(DEFAULT_LOG_FILE, maxBytes=50000, backupCount=2) + file_handler = RotatingFileHandler(DEFAULT_LOG_FILE, maxBytes=50000, backupCount=2, encoding='utf-8') log_file = "" file_handler.setFormatter(FORMATTER) @@ -152,11 +152,11 @@ def create_access_log(log_file, log_name, formatter): access_log.propagate = False access_log.setLevel(logging.INFO) try: - file_handler = RotatingFileHandler(log_file, maxBytes=50000, backupCount=2) + file_handler = RotatingFileHandler(log_file, maxBytes=50000, backupCount=2, encoding='utf-8') except IOError: if log_file == DEFAULT_ACCESS_LOG: raise - file_handler = RotatingFileHandler(DEFAULT_ACCESS_LOG, maxBytes=50000, backupCount=2) + file_handler = RotatingFileHandler(DEFAULT_ACCESS_LOG, maxBytes=50000, backupCount=2, encoding='utf-8') log_file = "" file_handler.setFormatter(formatter) diff --git a/test/Calibre-Web TestSummary_Windows.html b/test/Calibre-Web TestSummary_Windows.html new file mode 100644 index 00000000..3b020272 --- /dev/null +++ b/test/Calibre-Web TestSummary_Windows.html @@ -0,0 +1,3413 @@ + + + + Calibre-Web Tests + + + + + + + + + + + + + + + + + + + +
+

Calibre-Web Tests

+
+
+
+
+
+
+ +
+
+
+
+
+
+

Start Time: 2020-08-26 20:05:39

+
+
+
+
+

Stop Time: 2020-08-26 21:23:04

+
+
+
+
+

Duration: 1h 314 min

+
+
+
+
+
+ +
+
+
+
+
+ + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test Group/Test caseCountPassFailErrorSkipView
test_anonymous.testAnonymous1312010 + Detail +
+
test_check_locale_guest
+
PASS
+
test_guest_about
+
PASS
+
test_guest_change_visibility_category
+
PASS
+
test_guest_change_visibility_format
+
PASS
+
test_guest_change_visibility_hot
+
PASS
+
test_guest_change_visibility_language
+
PASS
+
test_guest_change_visibility_publisher
+
PASS
+
test_guest_change_visibility_rated
+
PASS
+
test_guest_change_visibility_rating
+
PASS
+
test_guest_change_visibility_series
+
PASS
+
test_guest_random_books_available
+
PASS
+
test_guest_restricted_settings_visibility
+
PASS
+
test_guest_visibility_sidebar
+
+
+ ERROR +
+ + + +
test_cli.testCli76001 + Detail +
+
test_already_started
+
PASS
+
test_bind_to_single_interface
+
PASS
+
test_cli_SSL_files
+
PASS
+
test_cli_different_folder
+
PASS
+
test_cli_different_settings_database
+
PASS
+
test_cli_gdrive_location
+
+
+ SKIP +
+ + + +
+
test_environ_port_setting
+
PASS
test_cover_edit_books.testCoverEditBooks10100 + Detail +
+
test_upload_jpg
+
+
+ FAIL +
+ + + +
test_delete_database.TestDeleteDatabase11000 + Detail +
+
test_delete_books_in_database
+
PASS
test_ebook_convert.TestEbookConvert1111000 + Detail +
+
test_convert_deactivate
+
PASS
+
test_convert_email
+
PASS
+
test_convert_failed_and_email
+
PASS
+
test_convert_only
+
PASS
+
test_convert_parameter
+
PASS
+
test_convert_wrong_excecutable
+
PASS
+
test_email_failed
+
PASS
+
test_email_only
+
PASS
+
test_kindle_send_not_configured
+
PASS
+
test_ssl_smtp_setup_error
+
PASS
+
test_starttls_smtp_setup_error
+
PASS
test_edit_additional_books.TestEditAdditionalBooks53200 + Detail +
+
test_delete_book
+
PASS
+
test_upload_metadata_cbt
+
PASS
+
test_upload_metadate_cbr
+
+
+ FAIL +
+ + + +
+
test_writeonly_database
+
PASS
+
test_writeonly_path
+
+
+ FAIL +
+ + + +
test_edit_books.TestEditBooks3329112 + Detail +
+
test_download_book
+
PASS
+
test_edit_author
+
PASS
+
test_edit_category
+
PASS
+
test_edit_comments
+
PASS
+
test_edit_custom_bool
+
PASS
+
test_edit_custom_categories
+
PASS
+
test_edit_custom_float
+
PASS
+
test_edit_custom_int
+
PASS
+
test_edit_custom_rating
+
PASS
+
test_edit_custom_single_select
+
PASS
+
test_edit_custom_text
+
PASS
+
test_edit_language
+
PASS
+
test_edit_publisher
+
PASS
+
test_edit_publishing_date
+
+
+ SKIP +
+ + + +
+
test_edit_rating
+
PASS
+
test_edit_series
+
PASS
+
test_edit_title
+
PASS
+
test_rename_uppercase_lowercase
+
+
+ SKIP +
+ + + +
+
test_typeahead_author
+
PASS
+
test_typeahead_functions
+
PASS
+
test_typeahead_language
+
PASS
+
test_typeahead_publisher
+
PASS
+
test_typeahead_series
+
PASS
+
test_typeahead_tag
+
PASS
+
test_upload_book_cbr
+
PASS
+
test_upload_book_cbt
+
PASS
+
test_upload_book_cbz
+
PASS
+
test_upload_book_epub
+
+
+ ERROR +
+ + + +
+
test_upload_book_fb2
+
PASS
+
test_upload_book_lit
+
PASS
+
test_upload_book_mobi
+
PASS
+
test_upload_book_pdf
+
PASS
+
test_upload_cover_hdd
+
+
+ FAIL +
+ + + +
test_edit_books_gdrive.test_edit_books_gdrive10100 + Detail +
+
test_config_gdrive
+
+
+ FAIL +
+ + + +
test_email_STARTTLS.test_STARTTLS30030 + Detail +
+
test_STARTTLS
+
+
+ ERROR +
+ + + +
+
test_STARTTLS_SSL_setup_error
+
+
+ ERROR +
+ + + +
+
test_STARTTLS_resend_password
+
+
+ ERROR +
+ + + +
unittest.suite._ErrorHolder20020 + Detail +
+
tearDownClass (test_email_STARTTLS)
+
+
+ ERROR +
+ + + +
+
tearDownClass (test_updater)
+
+
+ ERROR +
+ + + +
test_email_ssl.test_SSL44000 + Detail +
+
test_SSL_None_setup_error
+
PASS
+
test_SSL_STARTTLS_setup_error
+
PASS
+
test_SSL_logging_email
+
PASS
+
test_SSL_only
+
PASS
test_goodreads.TestGoodreads30003 + Detail +
+
test_author_page
+
+
+ SKIP +
+ + + +
+
test_author_page_invalid
+
+
+ SKIP +
+ + + +
+
test_goodreads_about
+
+
+ SKIP +
+ + + +
test_helper.CalibreHelper1616000 + Detail +
+
test_author_sort
+
PASS
+
test_author_sort_comma
+
PASS
+
test_author_sort_junior
+
PASS
+
test_author_sort_oneword
+
PASS
+
test_author_sort_roman
+
PASS
+
test_check_Limit_Length
+
PASS
+
test_check_char_replacement
+
PASS
+
test_check_chinese_Characters
+
PASS
+
test_check_deg_eur_replacement
+
PASS
+
test_check_doubleS
+
PASS
+
test_check_finish_Dot
+
PASS
+
test_check_high23
+
PASS
+
test_check_umlauts
+
PASS
+
test_random_password
+
PASS
+
test_split_authors
+
PASS
+
test_whitespaces
+
PASS
test_kobo_sync.TestKoboSync88000 + Detail +
+
test_kobo_about
+
PASS
+
test_shelves_add_remove_books
+
PASS
+
test_sync_changed_book
+
PASS
+
test_sync_invalid
+
PASS
+
test_sync_reading_state
+
PASS
+
test_sync_shelf
+
PASS
+
test_sync_unchanged
+
PASS
+
test_sync_upload
+
PASS
unittest.loader._FailedTest10010 + Detail +
+
unittestloader_FailedTest)
+
+
+ ERROR +
+ + + +
test_logging.test_logging74111 + Detail +
+
test_access_log_recover
+
+
+ FAIL +
+ + + +
+
test_debug_log
+
PASS
+
test_failed_login
+
PASS
+
test_failed_register
+
+
+ SKIP +
+ + + +
+
test_logfile_change
+
PASS
+
test_logfile_recover
+
+
+ ERROR +
+ + + +
+
test_logviewer
+
PASS
test_login.test_Login1110100 + Detail +
+
test_digest_login
+
PASS
+
test_login_capital_letters_user_unicode_password
+
PASS
+
test_login_delete_admin
+
PASS
+
test_login_empty_password
+
PASS
+
test_login_locale_select
+
PASS
+
test_login_protected
+
PASS
+
test_login_remember_me
+
PASS
+
test_login_rename_user
+
PASS
+
test_login_unicode_user_space_end_password
+
PASS
+
test_login_user_with_space_password_end_space
+
PASS
+
test_robots
+
+
+ FAIL +
+ + + +
test_oauth.test_OAuth_login22000 + Detail +
+
test_oauth_about
+
PASS
+
test_visible_oauth
+
PASS
test_opds_feed.test_opds_feed2020000 + Detail +
+
test_opds
+
PASS
+
test_opds_author
+
PASS
+
test_opds_calibre_companion
+
PASS
+
test_opds_cover
+
PASS
+
test_opds_download_book
+
PASS
+
test_opds_formats
+
PASS
+
test_opds_guest_user
+
PASS
+
test_opds_hot
+
PASS
+
test_opds_language
+
PASS
+
test_opds_non_admin
+
PASS
+
test_opds_publisher
+
PASS
+
test_opds_random
+
PASS
+
test_opds_ratings
+
PASS
+
test_opds_read_unread
+
PASS
+
test_opds_search
+
PASS
+
test_opds_series
+
PASS
+
test_opds_shelf_access
+
PASS
+
test_opds_tags
+
PASS
+
test_opds_top_rated
+
PASS
+
test_recently_added
+
PASS
test_register.test_register76100 + Detail +
+
test_forgot_password
+
+
+ FAIL +
+ + + +
+
test_limit_domain
+
PASS
+
test_register_no_server
+
PASS
+
test_registering_only_email
+
PASS
+
test_registering_user
+
PASS
+
test_registering_user_fail
+
PASS
+
test_user_change_password
+
PASS
test_shelf.test_shelf109001 + Detail +
+
test_add_shelf_from_search
+
PASS
+
test_arrange_shelf
+
PASS
+
test_delete_book_of_shelf
+
PASS
+
test_private_shelf
+
PASS
+
test_public_private_shelf
+
PASS
+
test_public_shelf
+
PASS
+
test_rename_shelf
+
PASS
+
test_shelf_action_non_shelf_edit_role
+
PASS
+
test_shelf_database_change
+
+
+ SKIP +
+ + + +
+
test_shelf_long_name
+
PASS
test_updater.TestUpdater87001 + Detail +
+
test_check_update_nightly_errors
+
PASS
+
test_check_update_nightly_request_errors
+
PASS
+
test_check_update_stable_errors
+
PASS
+
test_check_update_stable_versions
+
PASS
+
test_perform_update
+
PASS
+
test_perform_update_stable_errors
+
PASS
+
test_perform_update_timeout
+
+
+ SKIP +
+ + + +
+
test_reconnect_database
+
PASS
test_user_template.test_user_template1919000 + Detail +
+
test_allow_column_restriction
+
PASS
+
test_allow_tag_restriction
+
PASS
+
test_archived_format_template
+
PASS
+
test_author_user_template
+
PASS
+
test_best_user_template
+
PASS
+
test_category_user_template
+
PASS
+
test_deny_column_restriction
+
PASS
+
test_deny_tag_restriction
+
PASS
+
test_detail_random_user_template
+
PASS
+
test_format_user_template
+
PASS
+
test_hot_user_template
+
PASS
+
test_language_user_template
+
PASS
+
test_limit_book_languages
+
PASS
+
test_publisher_user_template
+
PASS
+
test_random_user_template
+
PASS
+
test_read_user_template
+
PASS
+
test_recent_user_template
+
PASS
+
test_series_user_template
+
PASS
+
test_ui_language_settings
+
PASS
test_visiblilitys.TestCalibreWebVisibilitys3030000 + Detail +
+
test_about
+
PASS
+
test_admin_SMTP_Settings
+
PASS
+
test_admin_add_user
+
PASS
+
test_admin_change_password
+
PASS
+
test_admin_change_visibility_archived
+
PASS
+
test_admin_change_visibility_authors
+
PASS
+
test_admin_change_visibility_category
+
PASS
+
test_admin_change_visibility_file_formats
+
PASS
+
test_admin_change_visibility_hot
+
PASS
+
test_admin_change_visibility_language
+
PASS
+
test_admin_change_visibility_publisher
+
PASS
+
test_admin_change_visibility_random
+
PASS
+
test_admin_change_visibility_rated
+
PASS
+
test_admin_change_visibility_rating
+
PASS
+
test_admin_change_visibility_read
+
PASS
+
test_admin_change_visibility_series
+
PASS
+
test_allow_columns
+
PASS
+
test_allow_tags
+
PASS
+
test_archive_books
+
PASS
+
test_authors_max_settings
+
PASS
+
test_checked_logged_in
+
PASS
+
test_hide_custom_column
+
PASS
+
test_link_column_to_read_status
+
PASS
+
test_random_books_available
+
PASS
+
test_restrict_columns
+
PASS
+
test_restrict_tags
+
PASS
+
test_search_functions
+
PASS
+
test_search_string
+
PASS
+
test_user_email_available
+
PASS
+
test_user_visibility_sidebar
+
PASS
Total223197899 
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Program libraryInstalled VersionTest class
PlatformWindows 10 10.0.19041 Intel64 Family 6 Model 69 Stepping 1, GenuineIntel AMD64Basic
Python3.8.3Basic
Babel2.8.0Basic
backports-abc0.5Basic
Flask1.1.2Basic
Flask-Babel1.0.0Basic
Flask-Login0.5.0Basic
Flask-Principal0.4.0Basic
iso-6390.4.5Basic
Jinja22.11.2Basic
natsort7.0.1Basic
pyasn10.4.8Basic
pyasn1-modules0.2.8Basic
PyPDF21.26.0Basic
pytz2020.1Basic
requests2.23.0Basic
rsa4.6Basic
singledispatch3.4.0.3Basic
six1.15.0Basic
SQLAlchemy1.3.19Basic
tornado6.0.4Basic
Unidecode1.1.1Basic
uritemplate3.0.1Basic
Wand0.5.9Basic
Werkzeug1.0.1Basic
Pillow7.2.0testCoverEditBooks
comicapi2.1.1TestEditAdditionalBooks
lxml4.5.2TestEditAdditionalBooks
Pillow7.2.0TestEditAdditionalBooks
rarfile4.0TestEditAdditionalBooks
lxml4.5.2TestEditBooks
Pillow7.2.0TestEditBooks
google-api-python-client1.10.1test_edit_books_gdrive
httplib20.18.1test_edit_books_gdrive
oauth2client4.1.3test_edit_books_gdrive
PyDrive1.3.1test_edit_books_gdrive
PyYAML5.3.1test_edit_books_gdrive
jsonschema3.2.0TestKoboSync
Flask-Dance3.0.0test_OAuth_login
SQLAlchemy-Utils0.36.8test_OAuth_login
+
+
+
+
+ + + + + + + + + \ No newline at end of file