diff test/test_library_lookup.py @ 1:071a185c2ced

new tools
author pieter.lukasse@wur.nl
date Fri, 24 Oct 2014 12:52:56 +0200
parents 4b94bb2d381c
children
line wrap: on
line diff
--- a/test/test_library_lookup.py	Thu Jan 16 13:22:38 2014 +0100
+++ b/test/test_library_lookup.py	Fri Oct 24 12:52:56 2014 +0200
@@ -27,7 +27,7 @@
         Tests the 'create_lookup_table' function
         '''
         column_type = 'Capillary'
-        polarity = 'Semi-standard non-polar'
+        polarity = 'Semi-standard non-polar6'
         lookup_dict = library_lookup.create_lookup_table(self.ri_database, column_type, polarity)
         self.assertFalse(False in [res[4] == 'Capillary' for res in lookup_dict['4177166']])
         self.assertEqual(['C51276336', '2,6-Dimethyl-octa-1,7-dien-3,6-diol', 'C10H18O2',
@@ -147,9 +147,9 @@
         '''
         Tests the match_library.py functionality
         '''
-        riqc_libs_dir = resource_filename(__name__, "../repositories")
+        riqc_libs_dir = resource_filename(__name__, "../repositories/PRIMS-metabolomics/RI_DB_libraries")
         get_library_files_output = match_library.get_directory_files(riqc_libs_dir)
-        self.assertEqual(4, len(get_library_files_output))
+        self.assertEqual(2, len(get_library_files_output))
         self.assertEqual("Library_RI_DB_capillary_columns-noDuplicates", get_library_files_output[0][0])
         #TODO change assert below to assert that the result is a file, so the test can run on other dirs as well:
         #self.assertEqual("E:\\workspace\\PRIMS-metabolomics\\python-tools\\tools\\GCMS\\test\\data\\riqc_libs\\RI DB library (capillary columns) Dec.2012.txt", get_library_files_output[0][1])