Commits

Sandra M Castro authored b3b81fecd64
Fixed casa5 datapath to test
No tags

casa5/gcwrap/python/scripts/tests/test_flagcmd.py

Modified
24 24 from tasks import flagcmd, flagdata, flagmanager
25 25 from taskinit import aftool
26 26 from taskinit import tbtool as table
27 27 from __main__ import default
28 28 from OrderedDictionary import OrderedDict
29 29
30 30 # Local copy of the agentflagger tool
31 31 aflocal = aftool()
32 32
33 33 # Path for data
34 - datapath = os.environ.get('CASAPATH').split()[0] + "casatestdata/unittest/flagcmd/"
34 + datapath = os.environ.get('CASAPATH').split()[0] + "/casatestdata/unittest/flagcmd/"
35 35
36 36 #
37 37 # Test of flagcmd task. It uses flagdata to unflag and summary
38 38 #
39 39
40 40 def test_eq(result, total, flagged):
41 41
42 42 print("%s of %s data was flagged, expected %s of %s" % \
43 43 (result['flagged'], result['total'], flagged, total))
44 44 assert result['total'] == total, \

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

Add shortcut