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

Update test_find_versions to fit changes introduced by NXDRIVE-746

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.1
    • Component/s: Tests

      Description

      [WINSLAVE] [INFO]      [exec] FAIL nuxeo-drive-client/tests/test_updater.py::TestUpdater::test_find_versions
      [WINSLAVE] [INFO]      [exec] ================================== FAILURES ===================================
      [WINSLAVE] [INFO]      [exec] _______________________ TestUpdater.test_find_versions ________________________
      [WINSLAVE] [INFO]      [exec] self = <tests.test_updater.TestUpdater testMethod=test_find_versions>
      [WINSLAVE] [INFO]      [exec] result = <TestCaseFunction 'test_find_versions'>
      [WINSLAVE] [INFO]      [exec]     def run(self, result=None):
      [WINSLAVE] [INFO]      [exec]         orig_result = result
      [WINSLAVE] [INFO]      [exec]         if result is None:
      [WINSLAVE] [INFO]      [exec]             result = self.defaultTestResult()
      [WINSLAVE] [INFO]      [exec]             startTestRun = getattr(result, 'startTestRun', None)
      [WINSLAVE] [INFO]      [exec]             if startTestRun is not None:
      [WINSLAVE] [INFO]      [exec]                 startTestRun()
      [WINSLAVE] [INFO]      [exec]         self._resultForDoCleanups = result
      [WINSLAVE] [INFO]      [exec]         result.startTest(self)
      [WINSLAVE] [INFO]      [exec]         testMethod = getattr(self, self._testMethodName)
      [WINSLAVE] [INFO]      [exec]         if (getattr(self.__class__, "__unittest_skip__", False) or
      [WINSLAVE] [INFO]      [exec]             getattr(testMethod, "__unittest_skip__", False)):
      [WINSLAVE] [INFO]      [exec]             # If the class or method was skipped.
      [WINSLAVE] [INFO]      [exec]             try:
      [WINSLAVE] [INFO]      [exec]                 skip_why = (getattr(self.__class__, '__unittest_skip_why__', '')
      [WINSLAVE] [INFO]      [exec]                             or getattr(testMethod, '__unittest_skip_why__', ''))
      [WINSLAVE] [INFO]      [exec]                 self._addSkip(result, skip_why)
      [WINSLAVE] [INFO]      [exec]             finally:
      [WINSLAVE] [INFO]      [exec]                 result.stopTest(self)
      [WINSLAVE] [INFO]      [exec]             return
      [WINSLAVE] [INFO]      [exec]         try:
      [WINSLAVE] [INFO]      [exec]             success = False
      [WINSLAVE] [INFO]      [exec]             try:
      [WINSLAVE] [INFO]      [exec]                 self.setUp()
      [WINSLAVE] [INFO]      [exec]             except SkipTest as e:
      [WINSLAVE] [INFO]      [exec]                 self._addSkip(result, str(e))
      [WINSLAVE] [INFO]      [exec]             except KeyboardInterrupt:
      [WINSLAVE] [INFO]      [exec]                 raise
      [WINSLAVE] [INFO]      [exec]             except:
      [WINSLAVE] [INFO]      [exec]                 result.addError(self, sys.exc_info())
      [WINSLAVE] [INFO]      [exec]             else:
      [WINSLAVE] [INFO]      [exec]                 try:
      [WINSLAVE] [INFO]      [exec] >                   testMethod()
      [WINSLAVE] [INFO]      [exec] cleanUpSuccess = True
      [WINSLAVE] [INFO]      [exec] orig_result = <TestCaseFunction 'test_find_versions'>
      [WINSLAVE] [INFO]      [exec] result     = <TestCaseFunction 'test_find_versions'>
      [WINSLAVE] [INFO]      [exec] self       = <tests.test_updater.TestUpdater testMethod=test_find_versions>
      [WINSLAVE] [INFO]      [exec] success    = False
      [WINSLAVE] [INFO]      [exec] testMethod = <bound method TestUpdater.test_find_versions of <tests.test_updater.TestUpdater testMethod=test_find_versions>>
      [WINSLAVE] [INFO]      [exec] ..\deploy-dir\drive-2.7.13-python\lib\unittest\case.py:329: 
      [WINSLAVE] [INFO]      [exec] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
      [WINSLAVE] [INFO]      [exec] self = <tests.test_updater.TestUpdater testMethod=test_find_versions>
      [WINSLAVE] [INFO]      [exec]     def test_find_versions(self):
      [WINSLAVE] [INFO]      [exec]         versions = self.updater.find_versions()
      [WINSLAVE] [INFO]      [exec] >       self.assertEqual(versions, ['1.3.0524', '1.4.0622'])
      [WINSLAVE] [INFO]      [exec] self       = <tests.test_updater.TestUpdater testMethod=test_find_versions>
      [WINSLAVE] [INFO]      [exec] versions   = ['1.3.0424', '1.3.0524', '1.4.0622']
      [WINSLAVE] [INFO]      [exec] nuxeo-drive-client\tests\test_updater.py:274: 
      [WINSLAVE] [INFO]      [exec] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
      [WINSLAVE] [INFO]      [exec] self = <tests.test_updater.TestUpdater testMethod=test_find_versions>
      [WINSLAVE] [INFO]      [exec] first = ['1.3.0424', '1.3.0524', '1.4.0622'], second = ['1.3.0524', '1.4.0622']
      [WINSLAVE] [INFO]      [exec] msg = None
      [WINSLAVE] [INFO]      [exec]     def assertEqual(self, first, second, msg=None):
      [WINSLAVE] [INFO]      [exec]         """Fail if the two objects are unequal as determined by the '=='
      [WINSLAVE] [INFO]      [exec]                operator.
      [WINSLAVE] [INFO]      [exec]             """
      [WINSLAVE] [INFO]      [exec]         assertion_func = self._getAssertEqualityFunc(first, second)
      [WINSLAVE] [INFO]      [exec] >       assertion_func(first, second, msg=msg)
      [WINSLAVE] [INFO]      [exec] assertion_func = <bound method TestUpdater.assertListEqual of <tests.test_updater.TestUpdater testMethod=test_find_versions>>
      [WINSLAVE] [INFO]      [exec] first      = ['1.3.0424', '1.3.0524', '1.4.0622']
      [WINSLAVE] [INFO]      [exec] msg        = None
      [WINSLAVE] [INFO]      [exec] second     = ['1.3.0524', '1.4.0622']
      [WINSLAVE] [INFO]      [exec] self       = <tests.test_updater.TestUpdater testMethod=test_find_versions>
      [WINSLAVE] [INFO]      [exec] ..\deploy-dir\drive-2.7.13-python\lib\unittest\case.py:513: 
      [WINSLAVE] [INFO]      [exec] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
      [WINSLAVE] [INFO]      [exec] self = <tests.test_updater.TestUpdater testMethod=test_find_versions>
      [WINSLAVE] [INFO]      [exec] list1 = ['1.3.0424', '1.3.0524', '1.4.0622'], list2 = ['1.3.0524', '1.4.0622']
      [WINSLAVE] [INFO]      [exec] msg = None
      [WINSLAVE] [INFO]      [exec]     def assertListEqual(self, list1, list2, msg=None):
      [WINSLAVE] [INFO]      [exec]         """A list-specific equality assertion.
      [WINSLAVE] [INFO]      [exec]             Args:
      [WINSLAVE] [INFO]      [exec]                 list1: The first list to compare.
      [WINSLAVE] [INFO]      [exec]                 list2: The second list to compare.
      [WINSLAVE] [INFO]      [exec]                 msg: Optional message to use on failure instead of a list of
      [WINSLAVE] [INFO]      [exec]                         differences.
      [WINSLAVE] [INFO]      [exec]             """
      [WINSLAVE] [INFO]      [exec] >       self.assertSequenceEqual(list1, list2, msg, seq_type=list)
      [WINSLAVE] [INFO]      [exec] list1      = ['1.3.0424', '1.3.0524', '1.4.0622']
      [WINSLAVE] [INFO]      [exec] list2      = ['1.3.0524', '1.4.0622']
      [WINSLAVE] [INFO]      [exec] msg        = None
      [WINSLAVE] [INFO]      [exec] self       = <tests.test_updater.TestUpdater testMethod=test_find_versions>
      

        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 - 1 hour
                  1h