def test_get_script_info(self): """get_script_info runs without error""" self.obs=get_script_info(self.script_dir,'make_qiime_rst_file') for i in self.obs: self.assertTrue(i in self.test_script_info) self.assertEqual(len(self.obs[i]),len(self.test_script_info[i]))
def setUp(self): """ """ self.headers=['head1','head2','head3'] self.test_option_file=make_option('-i', '--coord_fname', help='Input principal coordinates filepath', type='existing_path') self.test_option_colorby=make_option('-b', '--colorby', dest='colorby',\ help='Comma-separated list categories metadata categories' +\ ' (column headers) [default=color by all]') self.test_option_custom_axes=make_option('-a', '--custom_axes', help='This is the category from the metadata mapping file' +\ ' [default: %default]') self.test_option_choice=make_option('-k', '--background_color', help='Background color to use in the plots.[default: %default]', default='black',type='choice',choices=['black','white']) self.test_option_float=make_option('--ellipsoid_opacity', help='Used only when plotting ellipsoids for jackknifed' +\ ' beta diversity (i.e. using a directory of coord files' +\ ' [default=%default]', default=0.33,type=float) self.test_option_int=make_option('--n_taxa_keep', help='Used only when generating BiPlots. This is the number '+\ ' to display. Use -1 to display all. [default: %default]', default=10,type=int) self.test_option_true=make_option('--suppress_html_output', dest='suppress_html_output',\ default=False,action='store_true', help='Suppress HTML output. [default: %default]') self.test_option_false=make_option('--suppress_html_output', dest='suppress_html_output',\ default=True,action='store_false', help='Suppress HTML output. [default: %default]') self.option_labels={'coord_fname':'Principal coordinates filepath', 'colorby': 'Colorby category', 'background_color': 'Background color', 'ellipsoid_opacity':'Ellipsoid opacity', 'n_taxa_keep': '# of taxa to keep', 'custom_axes':'Custom Axis'} self.script_dir = get_qiime_scripts_dir() self.test_script_info=get_script_info(self.script_dir, 'make_qiime_rst_file')