Commits

Sandra Castro authored d1728f8de41
Fixed that path to the test data to point to the new casatestdata

repository

tests/tasks/test_msview.py

Modified
68 68 from casatasks.private.casa_transition import is_CASA6
69 69 if is_CASA6:
70 70 from casatools import ctsys
71 71 from casaviewer import msview
72 72 ctsys_resolve = ctsys.resolve
73 73 else:
74 74 from taskinit import *
75 75 from tasks import msview
76 76
77 77 def ctsys_resolve(apath):
78 - dataPath = os.path.join(os.environ.get('CASAPATH').split()[0],'data')
78 + dataPath = os.path.join(os.environ.get('CASAPATH').split()[0],'casatestdata/')
79 79 return os.path.join(dataPath,apath)
80 80
81 81 class msview_test(unittest.TestCase):
82 82
83 83 @classmethod
84 84 def setUpClass(self):
85 85 """copying data"""
86 86 self.testms = "tms"+str(os.getpid())+".ms"
87 87 self.outfiles = { }
88 88 for t in ['jpg', 'pdf', 'eps', 'ps', 'png', 'xbm', 'xpm', 'ppm']:
89 89 self.outfiles[t] = "tms"+str(os.getpid())+"."+t
90 - os.system('cp -R %s %s' % (ctsys_resolve('regression/fits-import-export/input/test.ms'),self.testms))
90 + os.system('cp -RH %s %s' % (ctsys_resolve('unittest/msview/ngc4826_bima_7fields_7spw.ms'),self.testms))
91 91
92 92 @classmethod
93 93 def tearDownClass(self):
94 94 """removing test images"""
95 95 if os.path.exists(self.testms):
96 96 shutil.rmtree(self.testms)
97 97 for outfileType in self.outfiles:
98 98 thisOutfile = self.outfiles[outfileType]
99 99 if os.path.exists(thisOutfile):
100 100 os.system('rm -rf ' + thisOutfile)

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut