Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-1953

Fix RegionMappingImporterTest on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.1
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows Hudson

      Description

      Stacktrace
      
      Project should contain only one data type:RegionMapping Expected 1 but got 2.
        File "C:\Anaconda\envs\tvb-run\lib\unittest\case.py", line 331, in run
          testMethod()
        File "c:\hudson\workspace\tvb - build - windows\framework_tvb\tvb\tests\framework\core\base_testcase.py", line 252, in dec
          result = func(*args, **kwargs)
        File "c:\hudson\workspace\tvb - build - windows\framework_tvb\tvb\tests\framework\adapters\uploaders\region_mapping_importer_test.py", line 167, in test_import_from_bz2
          self._import_from_file(self.BZ2_FILE)
        File "c:\hudson\workspace\tvb - build - windows\framework_tvb\tvb\tests\framework\adapters\uploaders\region_mapping_importer_test.py", line 174, in _import_from_file
          region_mapping = self._import(import_file, self.surface.gid, self.connectivity.gid)
        File "c:\hudson\workspace\tvb - build - windows\framework_tvb\tvb\tests\framework\adapters\uploaders\region_mapping_importer_test.py", line 125, in _import
          region_mapping = self._get_entity(RegionMapping(), data_filter)
        File "c:\hudson\workspace\tvb - build - windows\framework_tvb\tvb\tests\framework\adapters\uploaders\region_mapping_importer_test.py", line 96, in _get_entity
          self.assertEqual(1, len(data_types), "Project should contain only one data type:" + str(expected_data.type))
        File "c:\hudson\workspace\tvb - build - windows\framework_tvb\tvb\tests\framework\core\base_testcase.py", line 91, in assertEqual
          message + " Expected %s but got %s." % (expected, actual))
        File "C:\Anaconda\envs\tvb-run\lib\unittest\case.py", line 515, in assertEqual
          assertion_func(first, second, msg=msg)
        File "C:\Anaconda\envs\tvb-run\lib\unittest\case.py", line 508, in _baseAssertEqual
          raise self.failureException(msg)
          
      

        Attachments

          Activity

            People

            • Assignee:
              lia.domide Lia Domide
              Reporter:
              lia.domide Lia Domide
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours Time Not Required
                2h