Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-4813

Skip obs_cfht butler mapper test if datadir isn't found.

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: obs_cfht
    • Labels:
      None
    • Team:
      SQuaRE

      Description

      All of the test* functions in tests/testButler.py were disabled if the datadir wasn't found except for testPackageName. However, that test uses the butler as well, so if there's no datadir then that test must be skipped as well. Fix is to do:

          def testPackageName(self):
              if not self.runTests:
                  return
              self.assertEqual(self.butler.mapper.packageName, "obs_cfht")
      

        Attachments

          Activity

            People

            • Assignee:
              wmwood-vasey Michael Wood-Vasey
              Reporter:
              wmwood-vasey Michael Wood-Vasey
              Reviewers:
              Tim Jenness
              Watchers:
              Hsin-Fang Chiang, Michael Wood-Vasey, Tim Jenness
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel

                  Time Tracking

                  Estimated:
                  Original Estimate - 15 minutes
                  15m
                  Remaining:
                  Remaining Estimate - 15 minutes
                  15m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified