Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-2689

Fix test_wrong_server_reply()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.2.2
    • Component/s: Tests

      Description

          @pytest.mark.parametrize("bad_data", ["not a dict", {"wrong": "dict"}])
          def test_wrong_server_reply(bad_data, manager_factory):
              """
              A response that is not a dictionary or that does not contain
              the right entries should not raise an exception.
              It should not modify the attributes we use to track the last
              synchronization either.
              """
          
              def bad_get_changes(*args, **kwargs):
                  return bad_data
          
              manager, engine = manager_factory()
      >       sync_date = engine._remote_watcher._last_sync_date
      E       AttributeError: 'Engine' object has no attribute '_remote_watcher'
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 10 minutes
                  10m