#!/usr/bin/env python"""Run project test suite with pytest.To run the script:: testTry for instance:: testSee Also--------locan.tests.test"""from__future__importannotationsimportargparsefromlocan.testsimporttestassc_testdef_add_arguments(parser:argparse.ArgumentParser)->None:parser.add_argument("pytest_args",nargs="?",type=str,default=None,help="string with pytest options.",)
[docs]defmain(args:list[str]|None=None)->None:parser=argparse.ArgumentParser(description="Run test suite.")_add_arguments(parser)returned_args=parser.parse_args(args)sc_test(args=returned_args.pytest_args)