def test_main(self):
     """
     Test the main method
     """
     options = {'files': '',
                'database': DATABASE,
                'output_file': INDEX,
                'rows': 'readType\nread_length',
                'cols': 'cell',
                'subset_parameters': 'cell',
                'title': 'read dashboard',
                'description': 'Read type vs read length dashboard'}
     buildout = {'parameter_vocabulary': {'readType': 'Read Type',
                                          'read_length': 'Read Length',
                                          'cell': 'Cell Type'},
                 'parameter_categories': {'readType': 'Experiment',
                                          'read_length': 'Experiment',
                                          'localization': 'Experiment',
                                          'view': 'Results',
                                          'cell': 'Experiment',
                                         },
                 }
     result = main(options, buildout)
     endswith = ("raisin.recipe.dashboard/raisin/recipe/dashboard/"
                 "tests/static/index.html")
     self.failUnless(result.endswith(endswith))
示例#2
0
 def test_main(self):
     """
     Test the main method
     """
     options = {
         'files': '',
         'database': DATABASE,
         'output_file': INDEX,
         'rows': 'readType\nread_length',
         'cols': 'cell',
         'subset_parameters': 'cell',
         'title': 'read dashboard',
         'description': 'Read type vs read length dashboard'
     }
     buildout = {
         'parameter_vocabulary': {
             'readType': 'Read Type',
             'read_length': 'Read Length',
             'cell': 'Cell Type'
         },
         'parameter_categories': {
             'readType': 'Experiment',
             'read_length': 'Experiment',
             'localization': 'Experiment',
             'view': 'Results',
             'cell': 'Experiment',
         },
     }
     result = main(options, buildout)
     endswith = ("raisin.recipe.dashboard/raisin/recipe/dashboard/"
                 "tests/static/index.html")
     self.failUnless(result.endswith(endswith))
 def install(self):
     """
     Install the dashboard.
     """
     buildout_directory = self.buildout['buildout']['directory']
     dashboards_path = os.path.join(buildout_directory, 'dashboards')
     if not os.path.exists(dashboards_path):
         os.makedirs(dashboards_path)
     return main.main(self.options, self.buildout)
示例#4
0
 def install(self):
     """
     Install the dashboard.
     """
     buildout_directory = self.buildout['buildout']['directory']
     dashboards_path = os.path.join(buildout_directory, 'dashboards')
     if not os.path.exists(dashboards_path):
         os.makedirs(dashboards_path)
     return main.main(self.options, self.buildout)