Uploaded image for project: 'Nuxeo Python Client'
  1. Nuxeo Python Client
  2. NXPY-99

Fix errors with Python 3.5

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.1.0
    • Fix Version/s: NoVersionApplicable
    • Component/s: None

      Description

      The client is not currently working with Python 3.5 (3.5.2 in this case, I did not try another version):

      tests/test_batchupload.py::test_cancel FAILED                            [  0%]
      tests/test_batchupload.py::test_digester[00000000000000000000000000000000-False] FAILED [  1%]
      tests/test_batchupload.py::test_digester[None-True] FAILED               [  1%]
      tests/test_batchupload.py::test_digester[-True] FAILED                   [  2%]
      tests/test_batchupload.py::test_digester[foo-True] FAILED                [  2%]
      tests/test_batchupload.py::test_execute FAILED                           [  3%]
      tests/test_batchupload.py::test_fetch FAILED                             [  3%]
      tests/test_batchupload.py::test_operation FAILED                         [  4%]
      tests/test_document.py::test_document_get_blobs FAILED                   [  5%]
      tests/test_repository.py::test_bogus_converter FAILED                    [  5%]
      tests/test_repository.py::test_convert FAILED                            [  6%]
      tests/test_repository.py::test_convert_given_converter FAILED            [  6%]
      tests/test_repository.py::test_convert_missing_args FAILED               [  7%]
      tests/test_repository.py::test_convert_unavailable FAILED                [  7%]
      tests/test_repository.py::test_convert_xpath FAILED                      [  8%]
      tests/test_repository.py::test_create_doc_and_delete FAILED              [  9%]
      tests/test_repository.py::test_fetch_acls FAILED                         [  9%]
      tests/test_repository.py::test_fetch_blob FAILED                         [ 10%]
      tests/test_repository.py::test_fetch_rendition FAILED                    [ 10%]
      tests/test_repository.py::test_fetch_renditions FAILED                   [ 11%]
      tests/test_repository.py::test_update_doc_and_delete FAILED              [ 11%]
      tests/test_batchupload.py::test_data PASSED                              [ 12%]
      tests/test_batchupload.py::test_empty_file[False] PASSED                 [ 13%]
      tests/test_batchupload.py::test_empty_file[True] PASSED                  [ 13%]
      tests/test_batchupload.py::test_mimetype PASSED                          [ 14%]
      tests/test_batchupload.py::test_upload[False] PASSED                     [ 14%]
      tests/test_batchupload.py::test_upload[True] PASSED                      [ 15%]
      tests/test_batchupload.py::test_get_uploader PASSED                      [ 15%]
      tests/test_batchupload.py::test_uploaderror PASSED                       [ 16%]
      tests/test_batchupload.py::test_upload_retry PASSED                      [ 17%]
      tests/test_batchupload.py::test_upload_resume PASSED                     [ 17%]
      tests/test_batchupload.py::test_wrong_batch_id PASSED                    [ 18%]
      tests/test_directory.py::test_create_wrong_arguments PASSED              [ 18%]
      tests/test_directory.py::test_crud PASSED                                [ 19%]
      tests/test_directory.py::test_fetch PASSED                               [ 19%]
      tests/test_directory.py::test_fetch_all PASSED                           [ 20%]
      tests/test_directory.py::test_fetch_unknown PASSED                       [ 21%]
      tests/test_document.py::test_document_create PASSED                      [ 21%]
      tests/test_document.py::test_document_create_bytes_warning PASSED        [ 22%]
      tests/test_document.py::test_document_list_update PASSED                 [ 22%]
      tests/test_document.py::test_document_move PASSED                        [ 23%]
      tests/test_document.py::test_document_trash PASSED                       [ 23%]
      tests/test_document.py::test_follow_transition PASSED                    [ 24%]
      tests/test_document.py::test_add_permission PASSED                       [ 25%]
      tests/test_groups.py::test_create_delete_group_dict PASSED               [ 25%]
      tests/test_groups.py::test_create_wrong_arguments PASSED                 [ 26%]
      tests/test_groups.py::test_fetch PASSED                                  [ 26%]
      tests/test_groups.py::test_fetch_unknown_group PASSED                    [ 27%]
      tests/test_groups.py::test_update_group PASSED                           [ 27%]
      tests/test_nuxeo.py::test_check_params[Document.SetBlob-params0-True] PASSED [ 28%]
      tests/test_nuxeo.py::test_check_params[Document.SetBlob-params1-True] PASSED [ 28%]
      tests/test_nuxeo.py::test_check_params[Document.SetBlob-params2-False] PASSED [ 29%]
      tests/test_nuxeo.py::test_check_params[Document.AddPermission-params3-True] PASSED [ 30%]
      tests/test_nuxeo.py::test_check_params[Document.AddPermission-params4-False] PASSED [ 30%]
      tests/test_nuxeo.py::test_check_params[Document.AddPermission-params5-True] PASSED [ 31%]
      tests/test_nuxeo.py::test_check_params[Document.AddPermission-params6-False] PASSED [ 31%]
      tests/test_nuxeo.py::test_check_params[Document.Fetch-params7-True] PASSED [ 32%]
      tests/test_nuxeo.py::test_check_params[Document.Fetch-params8-False] PASSED [ 32%]
      tests/test_nuxeo.py::test_check_params[Document.MultiPublish-params9-True] PASSED [ 33%]
      tests/test_nuxeo.py::test_check_params[Document.MultiPublish-params10-False] PASSED [ 34%]
      tests/test_nuxeo.py::test_check_params[Audit.Query-params11-True] PASSED [ 34%]
      tests/test_nuxeo.py::test_check_params[Audit.Query-params12-False] PASSED [ 35%]
      tests/test_nuxeo.py::test_check_params[Document.Query-params13-True] PASSED [ 35%]
      tests/test_nuxeo.py::test_check_params[Document.Query-params14-False] PASSED [ 36%]
      tests/test_nuxeo.py::test_check_params[PDF.ExtractPages-params15-True] PASSED [ 36%]
      tests/test_nuxeo.py::test_check_params[PDF.ExtractPages-params16-False] PASSED [ 37%]
      tests/test_nuxeo.py::test_check_params[User.Invite-params17-True] PASSED [ 38%]
      tests/test_nuxeo.py::test_check_params[User.Invite-params18-False] PASSED [ 38%]
      tests/test_nuxeo.py::test_check_params[Document.Create-params19-True] PASSED [ 39%]
      tests/test_nuxeo.py::test_check_params[Document.Create-params20-False] PASSED [ 39%]
      tests/test_nuxeo.py::test_check_params[Blob.Create-params21-True] PASSED [ 40%]
      tests/test_nuxeo.py::test_check_params[Blob.Create-params22-False] PASSED [ 40%]
      tests/test_nuxeo.py::test_check_params[Document.SetProperty-params23-True] PASSED [ 41%]
      tests/test_nuxeo.py::test_check_params[Document.SetProperty-params24-True] PASSED [ 42%]
      tests/test_nuxeo.py::test_check_params[Document.SetProperty-params25-False] PASSED [ 42%]
      tests/test_nuxeo.py::test_check_params[Document.Query-params26-True] PASSED [ 43%]
      tests/test_nuxeo.py::test_check_params[Document.Query-params27-False] PASSED [ 43%]
      tests/test_nuxeo.py::test_check_params[Document.Query-params28-True] PASSED [ 44%]
      tests/test_nuxeo.py::test_check_params[Document.Query-params29-True] PASSED [ 44%]
      tests/test_nuxeo.py::test_check_params[Document.Query-params30-False] PASSED [ 45%]
      tests/test_nuxeo.py::test_check_params[Document.Query-params31-True] PASSED [ 46%]
      tests/test_nuxeo.py::test_check_params[User.Invite-params32-True] PASSED [ 46%]
      tests/test_nuxeo.py::test_check_params[User.Invite-params33-False] PASSED [ 47%]
      tests/test_nuxeo.py::test_check_params[Document.Query-params34-False] PASSED [ 47%]
      tests/test_nuxeo.py::test_check_params_constant PASSED                   [ 48%]
      tests/test_nuxeo.py::test_check_params_unknown_operation PASSED          [ 48%]
      tests/test_nuxeo.py::test_encoding_404_error PASSED                      [ 49%]
      tests/test_nuxeo.py::test_handle_error PASSED                            [ 50%]
      tests/test_nuxeo.py::test_file_out PASSED                                [ 50%]
      tests/test_nuxeo.py::test_get_operations PASSED                          [ 51%]
      tests/test_nuxeo.py::test_post_default PASSED                            [ 51%]
      tests/test_nuxeo.py::test_query PASSED                                   [ 52%]
      tests/test_nuxeo.py::test_query_empty PASSED                             [ 52%]
      tests/test_nuxeo.py::test_server_info PASSED                             [ 53%]
      tests/test_nuxeo.py::test_server_version PASSED                          [ 53%]
      tests/test_nuxeo.py::test_set_repository PASSED                          [ 54%]
      tests/test_nuxeo.py::test_request_token PASSED                           [ 55%]
      tests/test_nuxeo.py::test_send_wrong_method PASSED                       [ 55%]
      tests/test_nuxeo.py::test_server_reachable PASSED                        [ 56%]
      tests/test_nuxeo.py::test_unauthorized PASSED                            [ 56%]
      tests/test_operation.py::test_document_fetch_by_property PASSED          [ 57%]
      tests/test_operation.py::test_document_fetch_by_property_params_validation PASSED [ 57%]
      tests/test_operation.py::test_document_get_child PASSED                  [ 58%]
      tests/test_operation.py::test_document_get_child_unknown PASSED          [ 59%]
      tests/test_operation.py::test_params_setter PASSED                       [ 59%]
      tests/test_operation.py::test_context_setter PASSED                      [ 60%]
      tests/test_repository.py::test_add_remove_permission PASSED              [ 60%]
      tests/test_repository.py::test_create_doc_with_space_and_delete PASSED   [ 61%]
      tests/test_repository.py::test_fetch_audit PASSED                        [ 61%]
      tests/test_repository.py::test_fetch_non_existing PASSED                 [ 62%]
      tests/test_repository.py::test_fetch_root PASSED                         [ 63%]
      tests/test_repository.py::test_has_permission PASSED                     [ 63%]
      tests/test_repository.py::test_locking PASSED                            [ 64%]
      tests/test_repository.py::test_page_provider PASSED                      [ 64%]
      tests/test_repository.py::test_page_provider_pagination PASSED           [ 65%]
      tests/test_repository.py::test_query PASSED                              [ 65%]
      tests/test_repository.py::test_query_missing_args PASSED                 [ 66%]
      tests/test_repository.py::test_update_wrong_args PASSED                  [ 67%]
      tests/test_users.py::test_create_delete_user_dict PASSED                 [ 67%]
      tests/test_users.py::test_create_wrong_arguments PASSED                  [ 68%]
      tests/test_users.py::test_fetch PASSED                                   [ 68%]
      tests/test_users.py::test_fetch_unknown_user PASSED                      [ 69%]
      tests/test_users.py::test_lazy_loading PASSED                            [ 69%]
      tests/test_users.py::test_update_user PASSED                             [ 70%]
      tests/test_users.py::test_update_user_autoset_change_password PASSED     [ 71%]
      tests/test_users.py::test_update_user_autoset_change_password_2 PASSED   [ 71%]
      tests/test_utils.py::test_get_digester[00000000000000000000000000000000-md5] PASSED [ 72%]
      tests/test_utils.py::test_get_digester[0000000000000000000000000000000000000000-sha1] PASSED [ 72%]
      tests/test_utils.py::test_get_digester[00000000000000000000000000000000000000000000000000000000-sha224] PASSED [ 73%]
      tests/test_utils.py::test_get_digester[0000000000000000000000000000000000000000000000000000000000000000-sha256] PASSED [ 73%]
      tests/test_utils.py::test_get_digester[000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-sha384] PASSED [ 74%]
      tests/test_utils.py::test_get_digester[00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000-sha512] PASSED [ 75%]
      tests/test_utils.py::test_get_digester[None-None] PASSED                 [ 75%]
      tests/test_utils.py::test_get_digester[-None] PASSED                     [ 76%]
      tests/test_utils.py::test_get_digester[foo-None] PASSED                  [ 76%]
      tests/test_utils.py::test_get_digester[dead-None] PASSED                 [ 77%]
      tests/test_utils.py::test_guess_mimetype[foo.txt-text/plain] PASSED      [ 77%]
      tests/test_utils.py::test_guess_mimetype[foo.html-text/html] PASSED      [ 78%]
      tests/test_utils.py::test_guess_mimetype[foo.css-text/css] PASSED        [ 78%]
      tests/test_utils.py::test_guess_mimetype[foo.csv-text/csv] PASSED        [ 79%]
      tests/test_utils.py::test_guess_mimetype[foo.js-application/javascript] PASSED [ 80%]
      tests/test_utils.py::test_guess_mimetype[foo.jpg-image/jpeg] PASSED      [ 80%]
      tests/test_utils.py::test_guess_mimetype[foo.jpeg-image/jpeg] PASSED     [ 81%]
      tests/test_utils.py::test_guess_mimetype[foo.png-image/png] PASSED       [ 81%]
      tests/test_utils.py::test_guess_mimetype[foo.gif-image/gif] PASSED       [ 82%]
      tests/test_utils.py::test_guess_mimetype[foo.bmp-mime9] PASSED           [ 82%]
      tests/test_utils.py::test_guess_mimetype[foo.tiff-image/tiff] PASSED     [ 83%]
      tests/test_utils.py::test_guess_mimetype[foo.ico-mime11] PASSED          [ 84%]
      tests/test_utils.py::test_guess_mimetype[foo.mp3-audio/mpeg] PASSED      [ 84%]
      tests/test_utils.py::test_guess_mimetype[foo.vma-mime13] PASSED          [ 85%]
      tests/test_utils.py::test_guess_mimetype[foo.wav-mime14] PASSED          [ 85%]
      tests/test_utils.py::test_guess_mimetype[foo.mpeg-video/mpeg] PASSED     [ 86%]
      tests/test_utils.py::test_guess_mimetype[foo.mp4-video/mp4] PASSED       [ 86%]
      tests/test_utils.py::test_guess_mimetype[foo.mov-video/quicktime] PASSED [ 87%]
      tests/test_utils.py::test_guess_mimetype[foo.wmv-mime18] PASSED          [ 88%]
      tests/test_utils.py::test_guess_mimetype[foo.avi-mime19] PASSED          [ 88%]
      tests/test_utils.py::test_guess_mimetype[foo.doc-application/msword] PASSED [ 89%]
      tests/test_utils.py::test_guess_mimetype[foo.xls-application/vnd.ms-excel] PASSED [ 89%]
      tests/test_utils.py::test_guess_mimetype[foo.ppt-application/vnd.ms-powerpoint] PASSED [ 90%]
      tests/test_utils.py::test_guess_mimetype[foo.pdf-application/pdf] PASSED [ 90%]
      tests/test_utils.py::test_guess_mimetype[foo.unknown-application/octet-stream] PASSED [ 91%]
      tests/test_utils.py::test_guess_mimetype[foo.rvt-application/octet-stream] PASSED [ 92%]
      tests/test_utils.py::test_guess_mimetype[foo.xml-mime26] PASSED          [ 92%]
      tests/test_utils.py::test_guess_mimetype[foo.svg-mime27] PASSED          [ 93%]
      tests/test_utils.py::test_guess_mimetype[foo.flv-mime28] PASSED          [ 93%]
      tests/test_utils.py::test_guess_mimetype[foo.docx-mime29] PASSED         [ 94%]
      tests/test_utils.py::test_guess_mimetype[foo.xlsx-mime30] PASSED         [ 94%]
      tests/test_utils.py::test_guess_mimetype[foo.pptx-mime31] PASSED         [ 95%]
      tests/test_utils.py::test_guess_mimetype[foo.odt-mime32] PASSED          [ 96%]
      tests/test_utils.py::test_guess_mimetype[foo.ods-mime33] PASSED          [ 96%]
      tests/test_utils.py::test_guess_mimetype[foo.odp-mime34] PASSED          [ 97%]
      tests/test_utils.py::test_guess_mimetype_patch PASSED                    [ 97%]
      tests/test_workflows.py::test_basic_workflow PASSED                      [ 98%]
      tests/test_workflows.py::test_get_workflows PASSED                       [ 98%]
      tests/test_workflows.py::test_fetch_graph PASSED                         [ 99%]
      tests/test_workflows.py::test_task_transfer PASSED                       [100%]
      
      =================== 21 failed, 155 passed in 174.78 seconds ====================
      

        Attachments

          Activity

            People

            • Assignee:
              mschoentgen Mickaël Schoentgen
              Reporter:
              mschoentgen Mickaël Schoentgen
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 minute
                1m

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.