From: Diane Trout Date: Thu, 9 Jun 2011 23:35:30 +0000 (-0700) Subject: Move test srf files to testdata directory so I can use them in other tests X-Git-Tag: 0.5.2~30 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=d4d9aafe47132a76b17792bfe7a4202a20f2c0c2 Move test srf files to testdata directory so I can use them in other tests --- 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 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 index 0000000..b5d145f Binary files /dev/null and b/htsworkflow/pipelines/test/testdata/woldlab_090512_HWI-EAS229_0114_428NNAAXX_5.srf differ diff --git a/test/test_srf2fastq.py b/test/test_srf2fastq.py index eee4152..74e031c 100644 --- a/test/test_srf2fastq.py +++ b/test/test_srf2fastq.py @@ -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 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 index b5d145f..0000000 Binary files a/test/woldlab_090512_HWI-EAS229_0114_428NNAAXX_5.srf and /dev/null differ