Move test srf files to testdata directory so I can use them in other tests
authorDiane Trout <diane@caltech.edu>
Thu, 9 Jun 2011 23:35:30 +0000 (16:35 -0700)
committerDiane Trout <diane@caltech.edu>
Thu, 9 Jun 2011 23:35:30 +0000 (16:35 -0700)
htsworkflow/pipelines/test/testdata/woldlab_070829_USI-EAS44_0017_FC11055_1.srf [new file with mode: 0644]
htsworkflow/pipelines/test/testdata/woldlab_090512_HWI-EAS229_0114_428NNAAXX_5.srf [new file with mode: 0644]
test/test_srf2fastq.py
test/woldlab_070829_USI-EAS44_0017_FC11055_1.srf [deleted file]
test/woldlab_090512_HWI-EAS229_0114_428NNAAXX_5.srf [deleted file]

diff --git a/htsworkflow/pipelines/test/testdata/woldlab_070829_USI-EAS44_0017_FC11055_1.srf b/htsworkflow/pipelines/test/testdata/woldlab_070829_USI-EAS44_0017_FC11055_1.srf
new file mode 100644 (file)
index 0000000..dd802a7
Binary files /dev/null and b/htsworkflow/pipelines/test/testdata/woldlab_070829_USI-EAS44_0017_FC11055_1.srf differ
diff --git a/htsworkflow/pipelines/test/testdata/woldlab_090512_HWI-EAS229_0114_428NNAAXX_5.srf b/htsworkflow/pipelines/test/testdata/woldlab_090512_HWI-EAS229_0114_428NNAAXX_5.srf
new file mode 100644 (file)
index 0000000..b5d145f
Binary files /dev/null and b/htsworkflow/pipelines/test/testdata/woldlab_090512_HWI-EAS229_0114_428NNAAXX_5.srf differ
index eee4152f65082cc244165bb8e5dee4892cf865da..74e031ca7324174362de8695fb99ba4c50d830c7 100644 (file)
@@ -6,6 +6,8 @@ import unittest
 _module_path, _module_name = os.path.split(__file__)
 sys.path.append(os.path.join(_module_path, '..', 'scripts'))
 
+from htsworkflow.pipelines.test.simulate_runfolder import TESTDATA_DIR
+
 from htsworkflow.pipelines import srf2fastq
 
 class testSrf2Fastq(unittest.TestCase):
@@ -113,9 +115,9 @@ IIIIB+++
 
     def test_is_srf(self):        
         cnf4_srf = 'woldlab_070829_USI-EAS44_0017_FC11055_1.srf'
-        cnf4_path = os.path.join(_module_path, cnf4_srf)
+        cnf4_path = os.path.join(TESTDATA_DIR, cnf4_srf)
         cnf1_srf = 'woldlab_090512_HWI-EAS229_0114_428NNAAXX_5.srf'
-        cnf1_path = os.path.join(_module_path, cnf1_srf)
+        cnf1_path = os.path.join(TESTDATA_DIR, cnf1_srf)
         
         is_srf = srf2fastq.is_srf
         self.failUnlessEqual(is_srf(__file__), False)
@@ -124,9 +126,9 @@ IIIIB+++
 
     def test_is_cnf1(self):        
         cnf4_srf = 'woldlab_070829_USI-EAS44_0017_FC11055_1.srf'
-        cnf4_path = os.path.join(_module_path, cnf4_srf)
+        cnf4_path = os.path.join(TESTDATA_DIR, cnf4_srf)
         cnf1_srf = 'woldlab_090512_HWI-EAS229_0114_428NNAAXX_5.srf'
-        cnf1_path = os.path.join(_module_path, cnf1_srf)
+        cnf1_path = os.path.join(TESTDATA_DIR, cnf1_srf)
         
         is_cnf1 = srf2fastq.is_cnf1
         self.failUnlessRaises(ValueError, is_cnf1, __file__)
diff --git a/test/woldlab_070829_USI-EAS44_0017_FC11055_1.srf b/test/woldlab_070829_USI-EAS44_0017_FC11055_1.srf
deleted file mode 100644 (file)
index dd802a7..0000000
Binary files a/test/woldlab_070829_USI-EAS44_0017_FC11055_1.srf and /dev/null differ
diff --git a/test/woldlab_090512_HWI-EAS229_0114_428NNAAXX_5.srf b/test/woldlab_090512_HWI-EAS229_0114_428NNAAXX_5.srf
deleted file mode 100644 (file)
index b5d145f..0000000
Binary files a/test/woldlab_090512_HWI-EAS229_0114_428NNAAXX_5.srf and /dev/null differ