X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=htsworkflow%2Fpipelines%2Ftest%2Ftest_runfolder_rta180.py;h=eacae8c7f0e9db4aca1ee2573c391aba5a501f3e;hp=be83c3fbdaf06557912e661f6d6c5e8d1a68ffb6;hb=95476900113097ff8f334b55d4a40c7b30d18698;hpb=177aac122abd881f9ee5f57c54a13b9166d81c6d diff --git a/htsworkflow/pipelines/test/test_runfolder_rta180.py b/htsworkflow/pipelines/test/test_runfolder_rta180.py index be83c3f..eacae8c 100644 --- a/htsworkflow/pipelines/test/test_runfolder_rta180.py +++ b/htsworkflow/pipelines/test/test_runfolder_rta180.py @@ -25,9 +25,8 @@ def make_runfolder(obj=None): temp_dir = tempfile.mkdtemp(prefix='tmp_runfolder_') flowcell_id = '4286GAAXX' - runfolder_dir = os.path.join( - temp_dir, - '090608_HWI-EAS229_0117_{0}'.format(flowcell_id)) + runfolder = '090608_HWI-EAS229_0117_{0}'.format(flowcell_id) + runfolder_dir = os.path.join(temp_dir, runfolder) os.mkdir(runfolder_dir) data_dir = os.path.join(runfolder_dir, 'Data') @@ -50,6 +49,7 @@ def make_runfolder(obj=None): if obj is not None: obj.flowcell_id = flowcell_id obj.temp_dir = temp_dir + obj.runfolder = runfolder obj.runfolder_dir = runfolder_dir obj.data_dir = data_dir obj.image_analysis_dir = intensities_dir @@ -262,8 +262,9 @@ class RunfolderTests(TestCase): # do we get the flowcell id from the filename? self.failUnlessEqual(len(runs), 1) - name = 'run_4286GAAXX_%s.xml' % ( date.today().strftime('%Y-%m-%d'),) - self.failUnlessEqual(runs[0].name, name) + name = 'run_4286GAAXX_%s.xml' % ( date.today().strftime('%Y-%m-%d'),) + self.failUnlessEqual(runs[0].serialization_filename, name) + self.assertEqual(runs[0].runfolder_name, '090220_HWI-EAS229_0093_30VR0AAXX') # do we get the flowcell id from the FlowcellId.xml file make_flowcell_id(self.runfolder_dir, '207BTAAXY') @@ -272,6 +273,7 @@ class RunfolderTests(TestCase): name = 'run_207BTAAXY_%s.xml' % ( date.today().strftime('%Y-%m-%d'),) self.failUnlessEqual(runs[0].name, name) + r1 = runs[0] xml = r1.get_elements() xml_str = ElementTree.tostring(xml)