humann/tests/humann_test.py
def parse_arguments(args):
    """ 
    Parse the arguments from the user
    """
    parser = argparse.ArgumentParser(
        description= "HUMAnN Test\n",
        formatter_class=argparse.RawTextHelpFormatter,
        prog="humann_test")
    parser.add_argument(
        "--run-functional-tests-tools", 
        help="run the functional tests for tools\n", 
        action="store_true",
        default=False)
    parser.add_argument(
        "--run-functional-tests-end-to-end", 
        help="run the humann end to end functional tests\n", 
        action="store_true",
        default=False)
    parser.add_argument(
        "--bypass-unit-tests", 
        help="do not run the unit tests\n", 
        action="store_true",
        default=False)
    parser.add_argument(
        "--run-all-tests", 
        help="run all tests\n", 
        action="store_true",
        default=False)
    
    return parser.parse_args()
 
    Parse the arguments from the user
    
Parse the arguments from the user
Parse the arguments from the user
def parse_arguments(args):
    parser = argparse.ArgumentParser(
        description= "HUMAnN Test\n",
        formatter_class=argparse.RawTextHelpFormatter,
        prog="humann_test")
    parser.add_argument(
        "--run-functional-tests-tools", 
        help="run the functional tests for tools\n", 
        action="store_true",
        default=False)
    parser.add_argument(
        "--run-functional-tests-end-to-end", 
        help="run the humann end to end functional tests\n", 
        action="store_true",
        default=False)
    parser.add_argument(
        "--bypass-unit-tests", 
        help="do not run the unit tests\n", 
        action="store_true",
        default=False)
    parser.add_argument(
        "--run-all-tests", 
        help="run all tests\n", 
        action="store_true",
        default=False)
    return parser.parse_args()
def parse_arguments ( args ) : parser = argparse . ArgumentParser ( description = "HUMAnN Test\n" , formatter_class = argparse . RawTextHelpFormatter , prog = "humann_test" ) parser . add_argument ( "--run-functional-tests-tools" , help = "run the functional tests for tools\n" , action = "store_true" , default = False ) parser . add_argument ( "--run-functional-tests-end-to-end" , help = "run the humann end to end functional tests\n" , action = "store_true" , default = False ) parser . add_argument ( "--bypass-unit-tests" , help = "do not run the unit tests\n" , action = "store_true" , default = False ) parser . add_argument ( "--run-all-tests" , help = "run all tests\n" , action = "store_true" , default = False ) return parser . parse_args ( )
Parse the arguments from the user
Parse the arguments from the user
""" 
    Parse the arguments from the user
    """
args